I'm trying to use the suggester for auto-completion with Solr 4. I have 
followed the example configuration for phrase suggestions at the bottom of this 
wiki page: http://wiki.apache.org/solr/Suggester

This shows how to use a text file with the following text for phrase 
suggestions:

# simple auto-suggest phrase dictionary for testing
# note this uses tabs as separator!
the first phrase        1.0
the second phrase       2.0
testing 1234    3.0
foo     5.0
the fifth phrase        2.0
the final phrase        4.0

This seems to be working in the expected way. If I query for "the f" I receive 
the following suggestions:

<str>the final phrase</str>
<str>the fifth phrase</str>
<str>the first phrase</str>

I would like to deal with the case where the user is interested in "the foo". 
When "the fo" is entered, there will be no suggestions. Is it possible to 
provide both the phrase matches, and the matches for individual words, so that 
when the user entered text is no longer part of any actual phrase, there are 
still suggestions to be made for the final word?

Eric Wilson
cell#: 740-601-8993
IM: wilson.eri...@gmail.com

Reply via email to