Examples of transformToNative()


Examples of org.apache.solr.search.grouping.distributed.shardresultserializer.SearchGroupsResultTransformer.transformToNative()

    SearchGroupsResultTransformer serializer = new SearchGroupsResultTransformer(rb.req.getSearcher());
    try {
      for (ShardResponse srsp : shardRequest.responses) {
        @SuppressWarnings("unchecked")
        NamedList<NamedList> firstPhaseResult = (NamedList<NamedList>) srsp.getSolrResponse().getResponse().get("firstPhase");
        Map<String, Collection<SearchGroup<String>>> result = serializer.transformToNative(firstPhaseResult, groupSort, null, srsp.getShard());
        for (String field : commandSearchGroups.keySet()) {
          Collection<SearchGroup<String>> searchGroups = result.get(field);
          if (searchGroups == null) {
            continue;
          }
View Full Code Here

Examples of org.apache.solr.search.grouping.distributed.shardresultserializer.TopGroupsResultTransformer.transformToNative()

    }

    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
Copyright © 2018 www.massapi.com. 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.