The spellcheckers (IndexBasedSpellChecker and DirectSolrSpellChecker) both have tuning parameters that control how similar a potential correction needs to be from the original query term in order to be considered. For IndexBasedSpellChecker, there is "spellcheck.accuracy", which should be a number between 0 and 1. The default is .5. Numbers higher than .5 make it require the correction to be more similar than the original. Numbers lower than .5 allow the potential correction to be less like the original. So you might weant to try something lower than .5 . See http://wiki.apache.org/solr/SpellCheckComponent#spellcheck.accuracy .
If you're using DirectSolrSpellChecker, in addition to "accuracy", there are a number of other tuning parameters. See http://lucene.apache.org/solr/4_0_0//solr-core/org/apache/solr/spelling/DirectSolrSpellChecker.html . Of particular note is "maxEdits", which can either be 1 or 2 and no higher. (an "edit" is either inserting a character, deleting a character, substituting a character or transposing 2 adjacent characters, so to go from "tetttttt", you need 6 edits to get "test". In other words, DirectSolrSpellChecker will never make this correction for you.) In practice, I don't think it is fruitful to try and correct anything that needs more than 2 or so edits. James Dyer E-Commerce Systems Ingram Content Group (615) 213-4311 -----Original Message----- From: Dixline [mailto:dixli...@gmail.com] Sent: Monday, December 17, 2012 11:07 AM To: solr-user@lucene.apache.org Subject: Spell Check is not working properly When i try spell check with query parameter q=testtt it is returning the results properly but when i try with q=tetttttt i'm not getting any suggestions. The correct value is test. Why does spell check work properly for certain query where it fails in certain cases? Is there any format for the query? -- View this message in context: http://lucene.472066.n3.nabble.com/Spell-Check-is-not-working-properly-tp4027558.html Sent from the Solr - User mailing list archive at Nabble.com.