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

ASF subversion and git services commented on SOLR-10522:
--------------------------------------------------------

Commit 571264bcc007a3d853f678dd7ac5b529644e938d in lucene-solr's branch 
refs/heads/master from jdyer1
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=571264b ]

SOLR-10522: Revert "SOLR-9972: SpellCheckComponent collations and suggestions 
returned as a JSON object rather than a list"

This reverts commit 4cd3d15da8ef77ef50e2bda91ed6d3c6e87b5426.


> Duplicate keys in "collations" object with JSON response format
> ---------------------------------------------------------------
>
>                 Key: SOLR-10522
>                 URL: https://issues.apache.org/jira/browse/SOLR-10522
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: spellchecker
>    Affects Versions: 6.5
>            Reporter: Nikita Pchelintsev
>            Assignee: James Dyer
>            Priority: Minor
>
> After upgrading Solr 6.3 -> 6.5 I've noticed a change in how json response 
> writer outputs "collations" response key when spellchecking is enabled 
> (wt=json&json.nl=arrarr)
> Solr 6.3:
> "collations":
>     [
>       ["collation",{
>           "collationQuery":"the",
>           "hits":48,
>           "maxScore":"30.282",
>           "misspellingsAndCorrections":
>           [
>             ["thea","the"]]}],
>       ["collation",{
>           "collationQuery":"tea",
>           "hits":3,
>           "maxScore":"2.936",
>           "misspellingsAndCorrections":
>           [
>             ["thea","tea"]]}],
>       ...
> Solr 6.5:
> "collations":{
>       "collation":{
>         "collationQuery":"the",
>         "hits":43,
>         "misspellingsAndCorrections":
>         [
>           ["thea","the"]]},
>       "collation":{
>         "collationQuery":"tea",
>         "hits":3,
>         "misspellingsAndCorrections":
>         [
>           ["thea","tea"]]},
>         ...
> Solr 6.5 outputs object instead of an array, and it has duplicate keys which 
> is not valid for JSON format.
> Any help is appreciated.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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

Reply via email to