Package org.apache.solr.search.grouping.distributed.shardresultserializer

Examples of org.apache.solr.search.grouping.distributed.shardresultserializer.TopGroupsResultTransformer


    Map<String, List<QueryCommandResult>> commandTopDocs = new HashMap<String, List<QueryCommandResult>>();
    for (String query : queries) {
      commandTopDocs.put(query, new ArrayList<QueryCommandResult>());
    }

    TopGroupsResultTransformer serializer = new TopGroupsResultTransformer(rb);
    for (ShardResponse srsp : shardRequest.responses) {
      NamedList<NamedList> secondPhaseResult = (NamedList<NamedList>) srsp.getSolrResponse().getResponse().get("secondPhase");
      Map<String, ?> result = serializer.transformToNative(secondPhaseResult, groupSort, sortWithinGroup, srsp.getShard());
      for (String field : commandTopGroups.keySet()) {
        TopGroups<String> topGroups = (TopGroups<String>) result.get(field);
        if (topGroups == null) {
          continue;
        }
View Full Code Here

TOP

Related Classes of org.apache.solr.search.grouping.distributed.shardresultserializer.TopGroupsResultTransformer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.