SOLR-4746: fix JSON output for distributed grouping top level

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1470523 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2013-04-22 14:08:10 +00:00
parent ca4e843716
commit db21fb0bbd
2 changed files with 6 additions and 1 deletions

View File

@ -231,6 +231,11 @@ Bug Fixes
* SOLR-4716,SOLR-4584: SolrCloud request proxying does not work on Tomcat and
perhaps other non Jetty containers. (Po Rui, Yago Riveiro via Mark Miller)
* SOLR-4746: Distributed grouping used a NamedList instead of a SimpleOrderedMap
for the top level group commands, causing output formatting differences
compared to non-distributed grouping. (yonik)
Optimizations
----------------------

View File

@ -50,7 +50,7 @@ public class GroupedEndResultTransformer implements EndResultTransformer {
*/
@Override
public void transform(Map<String, ?> result, ResponseBuilder rb, SolrDocumentSource solrDocumentSource) {
NamedList<Object> commands = new NamedList<Object>();
NamedList<Object> commands = new SimpleOrderedMap<Object>();
for (Map.Entry<String, ?> entry : result.entrySet()) {
Object value = entry.getValue();
if (TopGroups.class.isInstance(value)) {