Try setting "spellcheck.alternativeTermCount" to a nonzero value.  See 
http://wiki.apache.org/solr/SpellCheckComponent#spellcheck.alternativeTermCount

The issue may be that by default, the spellchecker will never try to offer 
suggestions for a term that exists in the dictionary.  So if some other 
document contains "hot", it won't try to suggest for it.  On the other hand, 
having no documents with "hit" results in suggestions.  
"spellcheck.alternativeTermCount" tells it to offer suggestions even if the 
term is in the dictionary.

James Dyer
Ingram Content Group
(615) 213-4311

-----Original Message-----
From: hacene [mailto:hacene.meche...@ypg.com] 
Sent: Wednesday, May 08, 2013 2:12 PM
To: solr-user@lucene.apache.org
Subject: spellcheker and exact match

I have created an index that contains "pizza hut" and when I misspell it
"pizza hot" the spellchecker doesn't return anything. The strange thing is
it does find "pizza hut" when it is mispelled to "pizza hit"
What is the logic behind this behaviour? any help
thank you



--
View this message in context: 
http://lucene.472066.n3.nabble.com/spellcheker-and-exact-match-tp4061672.html
Sent from the Solr - User mailing list archive at Nabble.com.


Reply via email to