On Thu, Mar 1, 2012 at 6:43 AM, Husain, Yavar <yhus...@firstam.com> wrote: > Hi > > For spell checking component I set extendedResults to get the frequencies and > then select the word with the best frequency. I understand the spell check > algorithm based on Edit Distance. For an example: > > Query to Solr: Marien > > Spell Check Text Returned: Marine (Freq: 120), Market (Freq: 900) and others. > My dictionary here is based on indexed words. > > So I chose Market (more frequency) however which is wrong as my intent was > marine. Both have Edit Distance of 2.
If you don't mind using trunk, just use directspellchecker, since it counts marine as an edit distance of 1 from marien (a transposition: https://issues.apache.org/jira/browse/LUCENE-3662) -- lucidimagination.com