Hello,

I can't find anything in the docs to understand how Solr sorts suggest results 
when the weight is the same (0 in my case).

Here is my suggester config:
-------------------------------
<lst name="suggester">
  <str name="name">mySuggester</str>
  <str name="lookupImpl">AnalyzingInfixLookupFactory</str>
  <str name="dictionaryImpl">DocumentDictionaryFactory</str>
  <str name="field">autocomplete</str>
  <str name="payloadField">payload</str>
  <str name="suggestAnalyzerFieldType">text_general</str>
  <str name="buildOnCommit">true</str>
</lst>
-------------------------------

Results for query: /select?q=plas
-------------------------------
"plas":{
        "numFound":5,
        "suggestions":[{
            "term":"Lids - <b>plas</b>tic, small",
            "weight":0,
            "payload":"/bottle-caps.html"},
          {
            "term":"Body lotion bottle - <b>plas</b>tic",
            "weight":0,
            "payload":"/body-lotion-bottle.html"},
          {
            "term":"Lotion bottle - <b>plas</b>tic",
            "weight":0,
            "payload":"/body-lotion-bottle.html"},
          {
            "term":"Suncreen bottle - <b>plas</b>tic",
            "weight":0,
            "payload":"/body-lotion-bottle.html"},
          {
            "term":"Hand lotion bottle - <b>plas</b>tic",
            "weight":0,
            "payload":"/body-lotion-bottle.html"}]}
-------------------------------

It's not being sorting alphabetically (either by term or payload). Solr can't 
sort by weight field here either. So then is it sorting by relevancy? How can I 
find relevancy score? debugQuery=true does not work.

Thanks!
- H

________________________________
NOTICE -
This communication is intended ONLY for the use of the person or entity named 
above and may contain information that is confidential or legally privileged. 
If you are not the intended recipient named above or a person responsible for 
delivering messages or communications to the intended recipient, YOU ARE HEREBY 
NOTIFIED that any use, distribution, or copying of this communication or any of 
the information contained in it is strictly prohibited. If you have received 
this communication in error, please notify us immediately by telephone and then 
destroy or delete this communication, or return it to us by mail if requested 
by us. The City of Calgary thanks you for your attention and co-operation.

Reply via email to