public class SearchService extends AbstractLifecycleComponent<SearchService> implements IndexEventListener
Modifier and Type | Field and Description |
---|---|
static Setting<TimeValue> |
DEFAULT_KEEPALIVE_SETTING |
static Setting<TimeValue> |
DEFAULT_SEARCH_TIMEOUT_SETTING |
static Setting<TimeValue> |
KEEPALIVE_INTERVAL_SETTING |
static TimeValue |
NO_TIMEOUT |
lifecycle
deprecationLogger, logger, settings
Constructor and Description |
---|
SearchService(Settings settings,
ClusterSettings clusterSettings,
ClusterService clusterService,
IndicesService indicesService,
ThreadPool threadPool,
ScriptService scriptService,
BigArrays bigArrays,
FetchPhase fetchPhase) |
addLifecycleListener, close, lifecycleState, removeLifecycleListener, start, stop
logDeprecatedSetting, logRemovedSetting, nodeName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
afterIndexCreated, afterIndexShardClosed, afterIndexShardCreated, afterIndexShardDeleted, afterIndexShardStarted, beforeIndexAddedToCluster, beforeIndexClosed, beforeIndexCreated, beforeIndexDeleted, beforeIndexShardClosed, beforeIndexShardCreated, beforeIndexShardDeleted, indexShardStateChanged, onShardInactive, onStoreClosed, shardRoutingChanged
public static final TimeValue NO_TIMEOUT
@Inject public SearchService(Settings settings, ClusterSettings clusterSettings, ClusterService clusterService, IndicesService indicesService, ThreadPool threadPool, ScriptService scriptService, BigArrays bigArrays, FetchPhase fetchPhase)
public void afterIndexClosed(Index index, Settings indexSettings)
IndexEventListener
afterIndexClosed
in interface IndexEventListener
index
- The indexpublic void afterIndexDeleted(Index index, Settings indexSettings)
IndexEventListener
IndexEventListener.afterIndexClosed(org.elasticsearch.index.Index, org.elasticsearch.common.settings.Settings)
when an index is deletedafterIndexDeleted
in interface IndexEventListener
index
- The indexprotected void putContext(SearchContext context)
protected SearchContext removeContext(long id)
protected void doStart()
doStart
in class AbstractLifecycleComponent<SearchService>
protected void doStop()
doStop
in class AbstractLifecycleComponent<SearchService>
protected void doClose()
doClose
in class AbstractLifecycleComponent<SearchService>
public DfsSearchResult executeDfsPhase(ShardSearchRequest request) throws java.io.IOException
java.io.IOException
public QuerySearchResultProvider executeQueryPhase(ShardSearchRequest request) throws java.io.IOException
java.io.IOException
public ScrollQuerySearchResult executeQueryPhase(InternalScrollSearchRequest request)
public QuerySearchResult executeQueryPhase(QuerySearchRequest request)
public QueryFetchSearchResult executeFetchPhase(ShardSearchRequest request) throws java.io.IOException
java.io.IOException
public QueryFetchSearchResult executeFetchPhase(QuerySearchRequest request)
public ScrollQueryFetchSearchResult executeFetchPhase(InternalScrollSearchRequest request)
public FetchSearchResult executeFetchPhase(ShardFetchRequest request)
public boolean freeContext(long id)
public void freeAllScrollContexts()
public int getActiveContexts()