I'm not concerned about stopwords, rather the situation where the first and
second words are rarely used together, so don't occur together in a phrase
in the dictionary. Thanks.

On Wed, Mar 13, 2013 at 11:11 AM, Robert Muir <rcm...@gmail.com> wrote:

> On Wed, Mar 13, 2013 at 11:07 AM, Eric Wilson <wilson.eri...@gmail.com>
> wrote:
> > 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<
> https://mail.manta.com/owa/redir.aspx?C=a570b5bb74f64f4fb810ba260e304ec5&URL=http%3a%2f%2fwiki.apache.org%2fsolr%2fSuggester
> >
> >
> > 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?
> >
>
> Is it really the case that you want matches for individual words, or
> just to handle e.g. the stopwords case like 'the fo' -> foo ?
>
> the latter can be done with analyzingsuggester (configure a stopfilter
> on the analyzer).
>

Reply via email to