@Jack Krupansky, here is the important portion of my solrconfig.xml: <lst name="spellchecker"> <str name="name">default</str> <str name="field">title</str> <str name="classname">solr.DirectSolrSpellChecker</str> <!-- the spellcheck distance measure used, the default is the internal levenshtein --> <str name="distanceMeasure">internal</str> <!-- minimum accuracy needed to be considered a valid spellcheck suggestion --> <float name="accuracy">0.5</float> <!-- the maximum #edits we consider when enumerating terms: can be 1 or 2 --> <int name="maxEdits">2</int> <!-- the minimum shared prefix when enumerating terms --> <int name="minPrefix">1</int> <!-- maximum number of inspections per result. --> <int name="maxInspections">5</int> <!-- minimum length of a query term to be considered for correction --> <int name="minQueryLength">4</int> <!-- maximum threshold of documents a query term can appear to be considered for correction --> <float name="maxQueryFrequency">0.01</float> <!-- uncomment this to require suggestions to occur in 1% of the documents <float name="thresholdTokenFrequency">.01</float> --> </lst>
As you guess 'title' field is the one I'm searching & the one I'm building my suggestions from. @Ahmet Arsian: I understand that `spellcheck.q` doesnt resolve my issues, cause I want to get suggestions only for current category. 2014-02-26 17:07 GMT+01:00 Ahmet Arslan <iori...@yahoo.com>: > Hi Hakim, > > According to wiki spellcheck.q is intended to use with 'spelling ready' > query/input. > 'spelling ready' means it does not contain field names, AND, OR, etc. > Something like should work. spellcheck.q=value1 value2&q=+field1:value1 > +field2:value2 > > Ahmet > > > On Wednesday, February 26, 2014 5:51 PM, Hakim Benoudjit < > h.benoud...@gmail.com> wrote: > I have some difficulties to use `spellcheck.q` to get only suggestions for > current query. > > When I set `spellcheck.q` to lucene query format (field1:value1 AND > field2:value2), it doesnt return me any result. > > I have supposed that the value stored in `spellcheck.q` is just the value > of ``spellcheck` component default field, but it returns an error in this > case. > > Any help please? > >