Hi,
I am trying to utilize solr into an autocomplete thingy.

Let's assume I query for 'foo'.
Assuming we work with case insensitive here.

I would like to have records returned in specific order. First all that
have exact match, then all that start with Foo in alphabetical order,
then all that contain the exact word (but not necessarily first) and
lastly all matches where foo is anywhere within words.
Any pointers are more than welcome. I am trying to find something in
archives as well but no luck so far.

Example response when searching 'foo' or 'Foo':

Foo
Foo AAA
Foo BBB
Gooo Foo
Moo Foo
xxxfoox
Boo Foos

Reply via email to