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:
Erik Hatcher 2008-08-01 12:55:41 +00:00
parent 1d92c29bf0
commit 18331a264b
1 changed files with 1 additions and 1 deletions

View File

@ -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());