Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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: – danlefree Nov 17 '10 at 11:37
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


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.