Hi, I think you need to use the alternativeTermCount parameter ( http://wiki.apache.org/solr/SpellCheckComponent#spellcheck.alternativeTermCount) to return suggestions for terms which occur less often than the user-entered term.
More discussion here: https://issues.apache.org/jira/browse/SOLR-2585 https://issues.apache.org/jira/browse/LUCENE-3436 All the best, Eoghan On 4 April 2013 11:01, vsl <ociepa.pa...@gmail.com> wrote: > Hi, > > I configured index-based spell check component and unexpected problem > occurs. > > *CASE 1: * > I added two documents with following content: > 1. handbuch > 2. hanbuch > > The suggestions are returned for both terms: e.g. handbuch -> hanbuch and > hanbuch-> handbuch. > > Comment: Works as expected. > > *CASE 2: * > I added additional 5 documets with following content: > 1. hanbuch > > In this case only when I search for handbuch I get suggestion for hanbuch. > In the opposite direction there is no suggestion returned. > > *Desired behaviour:* > In both direction suggestion is returned. Like in Case 1: handbuch -> > hanbuch and hanbuch-> handbuch > > > > I have following configuration: > > <str name="spellcheck.onlyMorePopular">true</str> > <str name="spellcheck.extendedResults">true</str> > <str name="spellcheck.count">1</str> > <float name="thresholdTokenFrequency">.0000000001</float> > > > Additionaly when I turned spellcheck.onlyMorePopular to false no suggestion > was returned in any of mentioned cases. > > > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Spell-check-component-does-not-return-any-suggestions-tp4053757.html > Sent from the Solr - User mailing list archive at Nabble.com. >