I must have missed a configuration step because MediaWiki is still defaulting to the mysql search. I've included EzMwLucene.php in my LocalSettings.php, and managed to get the server started manually (service.sh kept failing), and the loader does seem to do some indexing, but other than that nothing.
My impression so far is that even if you polish this up it will be just as difficult to configure as MWSearch. The only added benefit on top of it for me right now is pdf indexing. I've got thousands and thousands of PDFs on my wiki.
:.../EzMwLucene/server# /usr/lib/jvm/java-6-sun-1.6.0.10/jre/bin/java -cp "/var/www/ccnlab/extensions/EzMwLucene/server/ezmwlucene.jar:/var/www/ccnlab/extensions/EzMwLucene/server/lib/jetty-6.1.14.jar:/var/www/ccnlab/extensions/EzMwLucene/server/lib/jetty-util-6.1.14.jar:/var/www/ccnlab/extensions/EzMwLucene/server/lib/servlet-api-2.5-6.1.14.jar:/var/www/ccnlab/extensions/EzMwLucene/server/lib/commons-codec-1.3.jar:/var/www/ccnlab/extensions/EzMwLucene/server/lib/commons-httpclient-3.1.jar:/var/www/ccnlab/extensions/EzMwLucene/server/lib/commons-logging.jar:/var/www/ccnlab/extensions/EzMwLucene/server/lib/FontBox-0.1.0-dev.jar:/var/www/ccnlab/extensions/EzMwLucene/server/lib/lucene-core-2.4.0.jar:/var/www/ccnlab/extensions/EzMwLucene/server/lib/lucene-highlighter-2.4.0.jar:/var/www/ccnlab/extensions/EzMwLucene/server/lib/PDFBox-0.7.3.jar:/var/www/ccnlab/extensions/EzMwLucene/server/lib/poi-3.5-beta3-20080926.jar:/var/www/ccnlab/extensions/EzMwLucene/server/lib/poi-scratchpad-3.5-beta3-20080926.jar" net.sourceforge.ezmwlucene.service.EzMwLuceneService Starting EzMwLucene server... 2009-05-08 16:22:48.039::INFO: Logging to STDERR via org.mortbay.log.StdErrLog 2009-05-08 16:22:48.259::INFO: jetty-6.1.14 2009-05-08 16:22:48.498::INFO: Started SocketConnector@0.0.0.0:8080 EzMwLucene started!
On Fri, May 8, 2009 at 3:31 PM, Lane, Ryan Ryan.Lane@ocean.navo.navy.milwrote:
service.sh has funky windows newlines that simply don't work on linux. I used the ubuntu package tofrodos, which contains the program fromdos, which cleaned it up for me.
dos2unix also works, if you are on a RHEL system.
Have you had problems uploading new files? I'm getting a php crash on it. I fixed the issue with the following patch:
--- EzMwLuceneIndexer.php.old 2009-05-08 16:26:28.000000000 -0500 +++ EzMwLuceneIndexer.php 2009-05-08 16:26:00.000000000 -0500 @@ -38,7 +38,7 @@ $xml .= "<content><![CDATA[{$revision->getRawText()}]]></content>"; /* If the article is in the Image namespace, add the file url */ if ($article->getTitle()->getNamespace()==6) {
$file = wfFindFile($article->getTitle());
$file =
wfFindFile($article->getTitle(),false,0,true); $xml .= "<attachment><![CDATA[{$file->getFullUrl()}]]></attachment>"; } $xml .= '</article>';
The php error I was getting was:
PHP Fatal error: Call to a member function getFullUrl() on a non-object in /var/www/html/wiki/extensions/EzMwLucene/EzMwLuceneIndexer.php on line 42, referer: https://<servername>/wiki/index.php/Special:Upload
The extension doesn't currently work with wikis that are using img_auth.php either.
V/r,
Ryan Lane
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l