[ 
https://issues.apache.org/jira/browse/SOLR-9060?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17139269#comment-17139269
 ] 

Thomas Corthals edited comment on SOLR-9060 at 6/18/20, 9:53 AM:
-----------------------------------------------------------------

I ran into this issue with Solr 7 and 8. The behaviour has changed a little 
since this was first reported. The sorting seems to be correct now with 
{{spellcheck.extendedResults=true}}, but not with 
{{spellcheck.extendedResults=false}}.

Tested on Solr 7.7.3 and Solr 8.5.2 in cloud mode with 2 nodes, 1 collection 
with numShards = 2 & replicationFactor = 1, techproducts configset and example 
data:
{code:java}
$ curl 
'http://localhost:8983/solr/techproducts/spell?q=power%20cort&spellcheck.extendedResults=false'

        "suggestion":["cord",
          "corp",
          "card"]}],  

$ curl 
'http://localhost:8983/solr/techproducts/spell?q=power%20cort&spellcheck.extendedResults=true'

        "suggestion":[{
            "word":"corp",
            "freq":2},
          {
            "word":"cord",
            "freq":1},
          {
            "word":"card",
            "freq":4}]}], 
{code}
 

I made a full comparison for standalone and cloud, on both the {{/spell}} and 
{{/browse}} request handlers in techproducts.

 
 
| |*Standalone*|*Standalone*|*Cloud*|*Cloud*|
| ** |*/spell*|*/browse*|*/spell*|*/browse*|
|*spellcheck.extendedResults=false*|"suggestion":["corp",
 "cord",
 "card"]}],|"suggestion":["corp",
 "cord",
 "card"]}],|"suggestion":[{color:#FF0000}"cord"{color},
 {color:#FF0000}"corp"{color},
 "card"]}],|"suggestion":[{color:#FF0000}"cord"{color},
 {color:#FF0000}"corp"{color},
 "card"]}],|
|*spellcheck.extendedResults=true*|"suggestion":[{
 "word":"corp",
 "freq":2},
 {
 "word":"cord",
 "freq":1},
 {
 "word":"card",
 "freq":4}]}],|"suggestion":[{
 "word":"corp",
 "freq":2},
 {
 "word":"cord",
 "freq":1},
 {
 "word":"card",
 "freq":4}]}],|"suggestion":[{
 "word":"corp",
 "freq":2},
 {
 "word":"cord",
 "freq":1},
 {
 "word":"card",
 "freq":4}]}],|"suggestion":[{
 "word":"corp",
 "freq":2},
 {
 "word":"cord",
 "freq":1},
 {
 "word":"card",
 "freq":4}]}],|


was (Author: thomascorthals):
I ran into this issue with Solr 7 and 8. The behaviour has changed a little 
since this was first reported. The sorting seems to be correct now with 
{{spellcheck.extendedResults=true}}, but not with 
{{spellcheck.extendedResults=false}}.

Tested on Solr 7.7.3 and Solr 8.5.2 in cloud mode with 2 nodes, 1 collection 
with numShards = 2 & replicationFactor = 1, techproducts configset and example 
data:
{code:java}
$ curl 
'http://localhost:8983/solr/techproducts/spell?q=power%20cort&spellcheck.extendedResults=false'

        "suggestion":["cord",
          "corp",
          "card"]}],  

$ curl 
'http://localhost:8983/solr/techproducts/spell?q=power%20cort&spellcheck.extendedResults=true'

        "suggestion":[{
            "word":"corp",
            "freq":2},
          {
            "word":"cord",
            "freq":1},
          {
            "word":"card",
            "freq":4}]}], 
{code}
 

I made a full comparison for standalone and cloud, on both the {{/spell}} and 
{{/browse}} request handlers in techproducts.

 
| |*Standalone*|*Cloud*|
|{{ ** }}|{{*/spell*}}|{{*/browse*}}|{{*/spell*}}|{{*/browse*}}|
|{{*spellcheck.extendedResults=false*}}|{{"suggestion":["corp",}}
{{ "cord",}}
{{ "card"]}],}}|{{"suggestion":["corp",}}
{{ "cord",}}
{{ "card"]}],}}|{{"suggestion":[{color:#FF0000}"cord"{color},}}
{{{color:#FF0000} "corp"{color},}}
{{ "card"]}],}}|{{"suggestion":[{color:#FF0000}"cord"{color},}}
{{{color:#FF0000} "corp"{color},}}
{{ "card"]}],}}|
|{{*spellcheck.extendedResults=true*}}|{{"suggestion":[{}}
{{ "word":"corp",}}
{{ "freq":2},}}
{{ {}}
{{ "word":"cord",}}
{{ "freq":1},}}
{{ {}}
{{ "word":"card",}}
{{ "freq":4}]}],}}|{{"suggestion":[{}}
{{ "word":"corp",}}
{{ "freq":2},}}
{{ {}}
{{ "word":"cord",}}
{{ "freq":1},}}
{{ {}}
{{ "word":"card",}}
{{ "freq":4}]}],}}|{{"suggestion":[{}}
{{ "word":"corp",}}
{{ "freq":2},}}
{{ {}}
{{ "word":"cord",}}
{{ "freq":1},}}
{{ {}}
{{ "word":"card",}}
{{ "freq":4}]}],}}|{{"suggestion":[{}}
{{ "word":"corp",}}
{{ "freq":2},}}
{{ {}}
{{ "word":"cord",}}
{{ "freq":1},}}
{{ {}}
{{ "word":"card",}}
{{ "freq":4}]}],}}|

> Spellcheck sort by frequency in solrcloud
> -----------------------------------------
>
>                 Key: SOLR-9060
>                 URL: https://issues.apache.org/jira/browse/SOLR-9060
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 5.3
>            Reporter: Gitanjali Palwe
>            Priority: Major
>         Attachments: spellcheck-sort-frequency.png
>
>
> The sorting by frequency for spellchecker doesn't work in solrcloud mode.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to