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
.
Lucene does this, with one minor alteration: foo* (with an asterix) matches foo & foobar. "foo" does only match foo.
See Wikipedia's Help:Searching.