Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
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 :
{"name":"collation",{ "type":"str","value":"collationQuery":"indomie kuing", "hits":81, "misspellingsAndCorrections": [ {"name":"indomee","type":"str","value":"indomie"}, {"name":"kuih","type":"str","value":"kuing"} ]} }
as you may see that "collationQuery":"indomie kuing" was considered as value thus causing the json to fail.
i think the correct json was :
{"name":"collation", "type":"object", "value":{ "collationQuery":"indomie kuing", "hits":81, "misspellingsAndCorrections": [ {"name":"indomee","type":"str","value":"indomie"}, {"name":"kuih","type":"str","value":"kuing"} ]} }
sorry for bad grammar english was not my first language and i know that object was not supported by current arrntv options.
Attachments
Attachments
Issue Links
- is related to
-
SOLR-10635 json "arrntv" format can sometime produce invalid json
- Open
-
SOLR-10522 Duplicate keys in "collations" object with JSON response format
- Closed
-
SOLR-9442 Add json.nl=arrnvp (array of NamedValuePair) style in JSONResponseWriter
- Resolved
-
SOLR-9787 Replace json.nl=arrnvp with json.nl=arrntv (array of Name Type Value) style in JSONResponseWriter
- Resolved
- relates to
-
SOLR-9975 add SpellCheckComponentTest.testCollateExtendedResults
- Closed