mirror of https://github.com/apache/lucene.git
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:
parent
ca4e843716
commit
db21fb0bbd
|
@ -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
|
||||
----------------------
|
||||
|
||||
|
|
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue