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

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

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.


> SpellCheckComponent to return collations and suggestions as a JSON object 
> rather than a list
> --------------------------------------------------------------------------------------------
>
>                 Key: SOLR-9972
>                 URL: https://issues.apache.org/jira/browse/SOLR-9972
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: Response Writers
>            Reporter: Ricky Oktavianus Lazuardy
>            Assignee: James Dyer
>            Priority: Minor
>             Fix For: 6.5
>
>         Attachments: SOLR-9972-hunch-no-test.patch, SOLR-9972-impact, 
> SOLR-9972-impact.out, SOLR-9972.patch, 
> SOLR-9972-with-test-after-SOLR-9975.patch
>
>
> original title: JSON-Specific Parameters arrntv causing some error for 
> spellcheck component
> So I tried using the new array named list arrntv from solr 6.5 jenkins build
> but the json returned was broken when it returned response for spellcheck 
> with word break.
> for example :
> {code:javascript}
>  {"name":"collation",{
>         "type":"str","value":"collationQuery":"indomie kuing",
>         "hits":81,
>         "misspellingsAndCorrections":
>         [
>           {"name":"indomee","type":"str","value":"indomie"},
>           {"name":"kuih","type":"str","value":"kuing"}
>         ]}
>  }
> {code}
> as you may see that "collationQuery":"indomie kuing" was considered as value 
> thus causing the json to fail.
> i think the correct json was :
> {code:javascript}
> {"name":"collation",
>         "type":"object",
>         "value":{
>         "collationQuery":"indomie kuing",
>         "hits":81,
>         "misspellingsAndCorrections":
>         [
>           {"name":"indomee","type":"str","value":"indomie"},
>           {"name":"kuih","type":"str","value":"kuing"}
>         ]}
>  }
> {code}
> sorry for bad grammar english was not my first language and i know that 
> object was not supported by current arrntv options.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to