For the MWSearch extension for Lucene, where can I find instructions for using the MWSearchUpdater.php and MWSearchUpdateHooks.php features? I'd like to update the Lucene index on every article save/move/delete. But I can't get this working.
I have Lucene 2.1 running just fine with MediaWiki 1.15, serving search queries. I also have PEAR XML_RPC installed. But when I try:
$ php luceneUpdate.php status Unknown XML-RPC error
LocalSettings.php contains: # Lucene search $wgSearchType = 'LuceneSearch'; $wgLuceneHost = 'localhost'; $wgLucenePort = 8123; require_once("extensions/MWSearch/MWSearch.php"); $wgLuceneSearchVersion = 2.1; require_once("extensions/MWSearch/MWSearchUpdateHook.php");
I noticed that MWSearchUpdater.php has $mwSearchUpdatePort = 8124 rather than 8123, but when I change it to 8123, I get a 404 and lsearchd says "Unknown request /SearchUpdater".
Thanks for any help.
DanB
This is an old and defunc feature, and there is no way to get it to work atm.. you could do frequent incremental updates and snapshots however..
r.
Daniel Barrett wrote:
For the MWSearch extension for Lucene, where can I find instructions for using the MWSearchUpdater.php and MWSearchUpdateHooks.php features? I'd like to update the Lucene index on every article save/move/delete. But I can't get this working.
I have Lucene 2.1 running just fine with MediaWiki 1.15, serving search queries. I also have PEAR XML_RPC installed. But when I try:
$ php luceneUpdate.php status Unknown XML-RPC error
LocalSettings.php contains: # Lucene search $wgSearchType = 'LuceneSearch'; $wgLuceneHost = 'localhost'; $wgLucenePort = 8123; require_once("extensions/MWSearch/MWSearch.php"); $wgLuceneSearchVersion = 2.1; require_once("extensions/MWSearch/MWSearchUpdateHook.php");
I noticed that MWSearchUpdater.php has $mwSearchUpdatePort = 8124 rather than 8123, but when I change it to 8123, I get a 404 and lsearchd says "Unknown request /SearchUpdater".
Thanks for any help.
DanB
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Which is the defunct feature: luceneUpdate.php, or MWSearchUpdateHooks.php?
To do incremental updates, must I install http://www.mediawiki.org/wiki/Extension:OAIRepository or is there another way?
Thanks, DanB
Both. You need to install OAIRepository, there is no other way to do incremental updates.
r.
Daniel Barrett wrote:
Which is the defunct feature: luceneUpdate.php, or MWSearchUpdateHooks.php?
To do incremental updates, must I install http://www.mediawiki.org/wiki/Extension:OAIRepository or is there another way?
Thanks, DanB
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
You need to install OAIRepository, there is no other way to do incremental updates.
Thanks Robert. I tried installing OAIRepository at http://www.mediawiki.org/wiki/Extension:OAIRepository and got to the org.wikimedia.lsearch.ranks.RankBuilder step, which bombed out with " Could not find the main class: org.wikimedia.lsearch.ranks.RankBuilder." Any suggestions?
$ java -Xmx256m -cp ./LuceneSearch.jar org.wikimedia.lsearch.ranks.RankBuilder wikidb.xml wikidb Exception in thread "main" java.lang.NoClassDefFoundError: org/wikimedia/lsearch/ranks/RankBuilder Caused by: java.lang.ClassNotFoundException: org.wikimedia.lsearch.ranks.RankBuilder at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) Could not find the main class: org.wikimedia.lsearch.ranks.RankBuilder. Program will exit.
DanB
Bah, those are quite old instructions.. you don't need any of those.. just install OAIRepository and run ./update .. Include OAIRepository using only:
@include( $IP.'/extensions/OAI/OAIRepo.php' );
And don't use any of the authentication and audit stuff unless you know what you're doing (or have a private wiki).
p.s. please use talk pages for discussing software troubleshooting, so it doesn't get lost in mailing list archive.
cheers, r.
Daniel Barrett wrote:
You need to install OAIRepository, there is no other way to do incremental updates.
Thanks Robert. I tried installing OAIRepository at http://www.mediawiki.org/wiki/Extension:OAIRepository and got to the org.wikimedia.lsearch.ranks.RankBuilder step, which bombed out with " Could not find the main class: org.wikimedia.lsearch.ranks.RankBuilder." Any suggestions?
$ java -Xmx256m -cp ./LuceneSearch.jar org.wikimedia.lsearch.ranks.RankBuilder wikidb.xml wikidb Exception in thread "main" java.lang.NoClassDefFoundError: org/wikimedia/lsearch/ranks/RankBuilder Caused by: java.lang.ClassNotFoundException: org.wikimedia.lsearch.ranks.RankBuilder at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) Could not find the main class: org.wikimedia.lsearch.ranks.RankBuilder. Program will exit.
DanB
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Thanks! Also, thanks for suggesting the Extension:OAIRepository talk page, but it has the same question on it as mine, unanswered for 6 months.
DanB
-----Original Message----- Bah, those are quite old instructions.. you don't need any of those.. just install OAIRepository and run ./update .. Include OAIRepository using only:
@include( $IP.'/extensions/OAI/OAIRepo.php' );
And don't use any of the authentication and audit stuff unless you know what you're doing (or have a private wiki).
p.s. please use talk pages for discussing software troubleshooting, so it doesn't get lost in mailing list archive.
cheers, r.
mediawiki-l@lists.wikimedia.org