On 7/17/2009 11:25 AM, Brion Vibber wrote:
Tod wrote:
This is my first post and I think I've selected the appropriate list. Please let me know if there is a better place to post my question.
I have a client with an installed search engine that they don't want to part with. I have used it to index their installed instance of MW. Is there a way to integrate the searching of their repository into the onboard MW search?
You can write a SearchEngine plugin which will call out to your search backend and display results within Special:Search on the wiki; see the MWSearch extension for an example -- that's what we use on Wikipedia to hit our Lucene-based search servers.
http://www.mediawiki.org/wiki/Extension:MWSearch
Alternatively you can set $wgSearchForwardUrl to simply pass search reqs on to an outside URL. However, search results then won't be shown in MediaWiki user interface, and won't be available through the API interface.
http://www.mediawiki.org/wiki/Manual:$wgSearchForwardUrl
-- brion
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Thanks Brion, just what I was looking for.
- Tod