Corey, Looking more carefully at your responses than I did last time I answered this question, it looks like every correction is 2 edits in this example.
unie > unity (e>t , insert y) unie > unger (i>g , insert r) unie > unick (e>c , insert k) unie > united (delete t , insert d) unie > unique (delete q, u) unie > unity (e>t , insert y) unie > unser (s>i , insert r) unie > unyi (i>y , e>i) So both "score" and "freq" will give it to you by frequency. Usually when I'm in doubt of something like this working like it should, I try to come up with more than 1 clear-cut example. James Dyer Ingram Content Group (615) 213-4311 -----Original Message----- From: Corey Gerhardt [mailto:corey.gerha...@directwest.com] Sent: Thursday, August 07, 2014 11:31 AM To: Solr User List Subject: Change order of spell checker suggestions issue Solr Rev: 4.6 Lucidworks: 2.6.3 This is sort of a repeat question, sorry. In the solrconfig.xml, will changing the value for the comparatorClass affect the sort of suggestions returned? This is my spellcheck component: <searchComponent class="com.lucid.spellchecking.LucidSpellCheckComponent" name="spellcheck"> <lst name="defaults"> <str name="spellcheck.onlyMorePopular">false</str> <str name="spellcheck.extendedResults">true</str> <str name="spellcheck.count">5</str> </lst> <str name="queryAnalyzerFieldType">textSpell</str> <lst name="spellchecker"> <str name="classname">org.apache.solr.spelling.DirectSolrSpellChecker</str> <str name="name">default</str> <str name="field">spell</str> <str name="distanceMeasure">internal</str> <float name="accuracy">0.5</float> <int name="maxEdits">2</int> <int name="minPrefix">1</int> <int name="maxInspections">5</int> <str name="comparatorClass">score</str> <float name="thresholdTokenFrequency">1</float> <int name="minQueryLength">4</int> <float name="maxQueryFrequency">0.01</float> </lst> </searchComponent> Searching for unie produces the following suggestions. But the suggestions appear to me to be by frequency (I've indicated Levenshtein distance in []): <lst> <str name="word">unity</str> [ 3 ] <int name="freq">1200</int> </lst> <lst> <str name="word">unger</str> [ 3 ] <int name="freq">119</int> </lst> <lst> <str name="word">unick</str> [ 3 ] <int name="freq">16</int> </lst> <lst> <str name="word">united</str> [ 4 ] <int name="freq">16</int> </lst> <lst> <str name="word">unique</str> [ 4 ] <int name="freq">10</int> </lst> <lst> <str name="word">unity</str> [ 3 ] <int name="freq">7</int> </lst> <lst> <str name="word">unser</str> [ 3 ] <int name="freq">7</int> </lst> <lst> <str name="word">unyi</str> [ 2 ] <int name="freq">7</int> </lst> Is something configured incorrectly or am I just needing more coffee?