darniz said: > > Hello All > Please reply to this ASAP > I am using indexbasedSpellchecker right now i copy only model, and make > names and some other fields to my spellcheck field. > Hence my spell check field consists of only 120 words. > > The issue is if i type hond i get back honda which is fine. But when i > type term like true i get back suggestion like ram.
I'm not quite sure what you're telling us now but you are using onlyMorePopular=true which will almost always return suggestions except if the specified term is actually the most popular. Another good practice, only show the user suggestions if the correctlySpelled flag is really false. Many users seem to depend on the condition of availability of a collation. Try turning onlyMorePopular off or rely on the correctlySpelled flag you have. > > I read there are some configuration to make for distance measure. > Right now This is my spell check configuration > <lst name="spellchecker"> > <str name="name">default</str> > <str name="field">searchSpellText</str> > <str name="buildOnOptimize">true</str> > <str name="buildOnCommit">true</str> > <str > name="distanceMeasure">org.apache.lucene.search.spell.JaroWinklerDistance</str> > <str name="spellcheckIndexDir">./edmundsSpellcheckerDataIndex</str> > </lst> > > and here is my query > q=true&version=2.2&start=0&rows=10&indent=on&spellcheck=true&spellcheck.field=edmundsSearchSpellText&spellcheck.collate=true&spellcheck.extendedResults=true&spellcheck.onlyMorePopular=true > > thanks > darniz > -- > View this message in context: > http://old.nabble.com/Spell-check-returns-strange-suggestion-tp27693520p27693520.html > Sent from the Solr - User mailing list archive at Nabble.com.