If you use Chantal's suggestion from an earlier thread, involving facets
and tokenized fields, but not the tokens handling -- i think it will
work. (But that solution requires only one auto-suggest value per
document).
There are a bunch of ways people have figured out to do auto-suggest
without putting it in an entirely seperate Solr core. They all have
their issues and strengths and weaknesses, including a weakness of being
kind of confusing to implement sometimes. I don't think anyone's come up
with a general purpose works for everything isn't confusing solution yet.
Robert Petersen wrote:
My simple but effective solution to that problem was to replace the
white spaces in the items you index for autosuggest with some special
character, then your wildcarding will work with the whole phrase as you
desire.
Index: "mike_shaffer"
Query: "mike_sha*"
-----Original Message-----
From: mike anderson [mailto:saidthero...@gmail.com]
Sent: Wednesday, October 06, 2010 7:33 AM
To: solr-user@lucene.apache.org
Subject: phrase query with autosuggest (SOLR-1316)
It seemed like SOLR-1316 was a little too long to continue the
conversation.
Is there support for quotes indicating a phrase query. For example, my
autosuggest query for "mike sha" ought to return "mike shaffer", "mike
sharp", etc. Instead I get suggestions for "mike" and for "sha",
resulting
in a collated result "mike r meyer shaw",
Cheers,
Mike