mirror of https://github.com/apache/lucene.git
Change suggestion list to be rendered as a hash / associative array instead of a simple array in JSON (and subclasses) output.
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@681680 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1d92c29bf0
commit
18331a264b
|
@ -196,7 +196,7 @@ public class SpellCheckComponent extends SearchComponent implements SolrCoreAwar
|
|||
Token inputToken = entry.getKey();
|
||||
Map<String, Integer> theSuggestions = entry.getValue();
|
||||
if (theSuggestions != null && theSuggestions.size() > 0) {
|
||||
NamedList suggestionList = new NamedList();
|
||||
SimpleOrderedMap suggestionList = new SimpleOrderedMap();
|
||||
suggestionList.add("numFound", theSuggestions.size());
|
||||
suggestionList.add("startOffset", inputToken.startOffset());
|
||||
suggestionList.add("endOffset", inputToken.endOffset());
|
||||
|
|
Loading…
Reference in New Issue