lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dyer, James" <James.D...@ingramcontent.com>
Subject RE: Debug DirectSolrSpellChecker Suggestion Sort Order
Date Fri, 01 Aug 2014 20:12:58 GMT
Query results default to score.  But spelling suggestions sort by edit distance, with frequency
as a secondary sort.  

unie => unger = 2 edits
unie => unick = 2 edits
unie => united = 3 edits
unie => unique = 3 edits
... etc ...

James Dyer
Ingram Content Group
(615) 213-4311


-----Original Message-----
From: Corey Gerhardt [mailto:Corey.Gerhardt@directwest.com] 
Sent: Friday, August 01, 2014 3:01 PM
To: 'solr-user@lucene.apache.org'
Subject: Debug DirectSolrSpellChecker Suggestion Sort Order

Everything that I read says that the default sort order is by Score, yet this appears to me
to be sorted by frequency:

                <lst name="suggestions">
                                                <lst name="unie">
                                                                <int name="numFound">10</int>
                                                                <int name="startOffset">0</int>
                                                                <int name="endOffset">4</int>
                                                                <int name="origFreq">0</int>
                                                                <arr name="suggestion">
                                                                                <lst>
                                                                                         
      <str name="word">unger</str>
                                                                                         
      <int name="freq">119</int>
                                                                                </lst>
                                                                                <lst>
                                                                                         
      <str name="word">unick</str>
                                                                                         
      <int name="freq">16</int>
                                                                                </lst>
                                                                                <lst>
                                                                                         
      <str name="word">united</str>
                                                                                         
      <int name="freq">16</int>
                                                                                </lst>
                                                                                <lst>
                                                                                         
      <str name="word">unique</str>
                                                                                         
      <int name="freq">10</int>
                                                                                </lst>
                                                                                <lst>
                                                                                         
      <str name="word">unity</str>
                                                                                         
      <int name="freq">7</int>
                                                                                </lst>
                                                                                <lst>
                                                                                         
      <str name="word">unser</str>
                                                                                         
      <int name="freq">7</int>
                                                                                </lst>
                                                                                <lst>
                                                                                         
      <str name="word">unyi</str>
                                                                                         
      <int name="freq">7</int>
                                                                                </lst>
                                                                                <lst>
                                                                                         
      <str name="word">utke</str>
                                                                                         
      <int name="freq">5</int>
                                                                                </lst>
                                                                                <lst>
                                                                                         
      <str name="word">uribe</str>
                                                                                         
      <int name="freq">3</int>
                                                                                </lst>
                                                                                <lst>
                                                                                         
      <str name="word">uthe</str>
                                                                                         
      <int name="freq">3</int>
                                                                                </lst>
                                                                </arr>
                                                </lst>


I've even set in solconfig.xml:
<str name="comparatorClass">score</str>
Is there a way that I can debug my issue? I'm searching people names so ideally I'm hoping
to get unyi higher in the list of suggestions.

Thanks,

Corey


Mime
View raw message