Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Mediawiki

MWSearchUpdater setup instructions?

 

 

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded


danb at VistaPrint

Sep 15, 2009, 7:55 AM

Post #1 of 7 (1007 views)
Permalink
MWSearchUpdater setup instructions?

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 [at] lists
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


rainmansr at gmail

Sep 15, 2009, 10:46 AM

Post #2 of 7 (953 views)
Permalink
Re: MWSearchUpdater setup instructions? [In reply to]

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 [at] lists
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>
>


_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


danb at VistaPrint

Sep 15, 2009, 10:58 AM

Post #3 of 7 (953 views)
Permalink
Re: MWSearchUpdater setup instructions? [In reply to]

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 [at] lists
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


rainmansr at gmail

Sep 15, 2009, 5:21 PM

Post #4 of 7 (943 views)
Permalink
Re: MWSearchUpdater setup instructions? [In reply to]

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 [at] lists
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>
>


_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


danb at VistaPrint

Sep 16, 2009, 7:25 AM

Post #5 of 7 (932 views)
Permalink
Re: MWSearchUpdater setup instructions? [In reply to]

>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 [at] lists
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


rainmansr at gmail

Sep 16, 2009, 7:46 AM

Post #6 of 7 (933 views)
Permalink
Re: MWSearchUpdater setup instructions? [In reply to]

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 [at] lists
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>
>


_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


danb at VistaPrint

Sep 16, 2009, 7:58 AM

Post #7 of 7 (930 views)
Permalink
Re: MWSearchUpdater setup instructions? [In reply to]

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 mailing list
MediaWiki-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.