You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by hacene <ha...@ypg.com> on 2013/05/08 21:11:50 UTC

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.

RE: spellcheker and exact match

Posted by hacene <ha...@ypg.com>.
I tried those parameters and it does suggest keywords but not the ones I'm
interested in



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

RE: spellcheker and exact match

Posted by "Dyer, James" <Ja...@ingramcontent.com>.
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.mechedou@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.