Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.3
-
None
Description
When: wt=json & spellcheck.extendedResults=true & spellcheck.count > 1, the suggestions are returned in the following format:
"suggestions":[
"amsterdm",{
"numFound":5,
"startOffset":0,
"endOffset":8,
"origFreq":0,
"suggestion":
,
"suggestion":
,
"suggestion":
,
"suggestion":
,
"suggestion":{
"frequency":22,
"word":"amsterdamse"}},
"beak",{
"numFound":5,
"startOffset":9,
"endOffset":13,
"origFreq":0,
"suggestion":
,
"suggestion":
,
"suggestion":
,
"suggestion":
,
"suggestion":{
"frequency":11,
"word":"beuk"}},
"correctlySpelled",false,
"collation","amsterdam beek"]}}
This is an invalid json as each term is associated with a JSON object which holds multiple "suggestion" attributes. When working with a JSON library only the last "suggestion" attribute is picked up.