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

Examples of org.apache.solr.search.grouping.distributed.command.SearchGroupsFieldCommand$Builder


  public NamedList transform(List<Command> data) throws IOException {
    NamedList<NamedList> result = new NamedList<NamedList>();
    for (Command command : data) {
      NamedList commandResult;
      if (SearchGroupsFieldCommand.class.isInstance(command)) {
        SearchGroupsFieldCommand fieldCommand = (SearchGroupsFieldCommand) command;
        Collection<SearchGroup<String>> searchGroups = fieldCommand.result();
        if (searchGroups == null) {
          continue;
        }

        commandResult = serializeSearchGroup(searchGroups, fieldCommand.getGroupSort());
      } else {
        commandResult = null;
      }

      result.add(command.getKey(), commandResult);
View Full Code Here

TOP

Related Classes of org.apache.solr.search.grouping.distributed.command.SearchGroupsFieldCommand$Builder

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.