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

Reply via email to