Thanks, Robert.

I'm I correct in thinking that queryAnalyzerFieldType isn't needed at all
if I'm using spellcheck.q rather than just q?

Eoghan

On 15 March 2013 20:07, Robert Muir <rcm...@gmail.com> wrote:

> On Fri, Mar 15, 2013 at 3:04 PM, Eoghan Ó Carragáin
> <eoghan.ocarrag...@gmail.com> wrote:
> > Hi,
> > I'm interested in using the new Analyzing Suggester described by Mike
> > McCandless [1], but I'm not sure how it should be configured.
> >
> > I've setup my SpellCheckComponent with
> >       <str
> name="classname">org.apache.solr.spelling.suggest.Suggester</str>
> >       <str
> >
> name="lookupImpl">org.apache.solr.spelling.suggest.fst.AnalyzingLookupFactory</str>
> >
> > I think I also need to set suggestAnalyzerFieldType
> > and queryAnalyzerFieldType? I presume these should have the names of
> field
> > types configured in schema.xml, but I'm not sure. I'd appreciate if
> someone
> > could point me to documentation on this (I didn't find anything on the
> > wiki), or post an example SpellCheckComponent configuration.
> >
> > Also, what is the difference between the Fuzzy Suggester and the
> Analyzing
> > Suggester. When would you use one rather than the other?
> >
>
> The same example config for the wiki also has entries for
> analyzing/fuzzy suggesters
>
> there is an example schema here:
>
> http://svn.apache.org/repos/asf/lucene/dev/trunk/solr/core/src/test-files/solr/collection1/conf/schema-phrasesuggest.xml
> and with solrconfig here:
>
> http://svn.apache.org/repos/asf/lucene/dev/trunk/solr/core/src/test-files/solr/collection1/conf/solrconfig-phrasesuggest.xml
>
> the "two" analyzers are confusing. the queryAnalyzerFieldType is just
> a solr thing for all suggester/spellcheckers and unrelated to
> analyzing suggester. so e.g. you'd make this type do minimal stuff if
> anything (set to keywordtokenizer, or something like that
> phrase_suggest that will try to parse out the field names and
> operators too but otherwise not do any tokenization or anything).
>
> the suggestAnalyzerFieldType is the one being passed to
> analyzing/fuzzy suggester as the analyzer..
>
> fuzzy suggester is just like analyzing suggester, except it also
> corrects typos while autosuggesting.
>

Reply via email to