Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

searchterm: foo should match foo and foobar

searchterm: "foo" should only match foo

I tried LuceneSearch and SphinxSearch so far, but I couldn't get any of these to behave like google. foo will only match foo, and foo* will match foo and foobar.

share|improve this question
    
MediaWiki search is often problematic, but have you considered simply applying a Google Custom Search? It'd certainly line up with your requirements and it would probably save you some time/money testing out less-than-adequate alternatives. –  danlefree Nov 17 '10 at 10:30
    
@danlefree: That's not an option I'm afraid. The wiki is not publicly accessible. –  chris Nov 17 '10 at 10:40
    
Gotcha. There's also the option to acquire a Google search appliance if you're dealing with a corporate intranet and can expense it (linked). Favorited your question as I'm equally interested to see if anyone else has found an open source solution which beats Lucene and Sphinx. GSA: google.com/enterprise/search/gsa.html –  danlefree Nov 17 '10 at 11:37

1 Answer 1

up vote 0 down vote accepted

Lucene does this, with one minor alteration: foo* (with an asterix) matches foo & foobar. "foo" does only match foo.

See Wikipedia's Help:Searching.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.