org.elasticsearch.action.search.type
Class TransportSearchHelper

java.lang.Object
  extended by org.elasticsearch.action.search.type.TransportSearchHelper

public abstract class TransportSearchHelper
extends java.lang.Object


Method Summary
static java.lang.String buildScrollId(SearchType searchType, java.lang.Iterable<? extends SearchPhaseResult> searchPhaseResults)
           
static java.lang.String buildScrollId(java.lang.String type, java.lang.Iterable<? extends SearchPhaseResult> searchPhaseResults)
           
static ShardSearchFailure[] buildShardFailures(java.util.Collection<ShardSearchFailure> shardFailures, TransportSearchCache searchCache)
          Builds the shard failures, and releases the cache (meaning this should only be called once!).
static InternalScrollSearchRequest internalScrollSearchRequest(long id, SearchScrollRequest request)
           
static InternalSearchRequest internalSearchRequest(ShardRouting shardRouting, int numberOfShards, SearchRequest request)
           
static ParsedScrollId parseScrollId(java.lang.String scrollId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

buildShardFailures

public static ShardSearchFailure[] buildShardFailures(java.util.Collection<ShardSearchFailure> shardFailures,
                                                      TransportSearchCache searchCache)
Builds the shard failures, and releases the cache (meaning this should only be called once!).


internalSearchRequest

public static InternalSearchRequest internalSearchRequest(ShardRouting shardRouting,
                                                          int numberOfShards,
                                                          SearchRequest request)

internalScrollSearchRequest

public static InternalScrollSearchRequest internalScrollSearchRequest(long id,
                                                                      SearchScrollRequest request)

buildScrollId

public static java.lang.String buildScrollId(SearchType searchType,
                                             java.lang.Iterable<? extends SearchPhaseResult> searchPhaseResults)

buildScrollId

public static java.lang.String buildScrollId(java.lang.String type,
                                             java.lang.Iterable<? extends SearchPhaseResult> searchPhaseResults)

parseScrollId

public static ParsedScrollId parseScrollId(java.lang.String scrollId)