Package org.elasticsearch.action.search
Class SearchTransportService
- java.lang.Object
-
- org.elasticsearch.common.component.AbstractComponent
-
- org.elasticsearch.action.search.SearchTransportService
-
public class SearchTransportService extends AbstractComponent
An encapsulation ofSearchServiceoperations exposed through transport.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSearchTransportService.SearchFreeContextResponse
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCLEAR_SCROLL_CONTEXTS_ACTION_NAMEstatic java.lang.StringDFS_ACTION_NAMEstatic java.lang.StringFETCH_ID_ACTION_NAMEstatic java.lang.StringFETCH_ID_SCROLL_ACTION_NAMEstatic java.lang.StringFREE_CONTEXT_ACTION_NAMEstatic java.lang.StringFREE_CONTEXT_SCROLL_ACTION_NAMEstatic java.lang.StringQUERY_ACTION_NAMEstatic java.lang.StringQUERY_CAN_MATCH_NAMEstatic java.lang.StringQUERY_FETCH_SCROLL_ACTION_NAMEstatic java.lang.StringQUERY_ID_ACTION_NAMEstatic java.lang.StringQUERY_SCROLL_ACTION_NAME-
Fields inherited from class org.elasticsearch.common.component.AbstractComponent
deprecationLogger, logger, settings
-
-
Constructor Summary
Constructors Constructor Description SearchTransportService(Settings settings, TransportService transportService, java.util.function.BiFunction<Transport.Connection,org.elasticsearch.action.search.SearchActionListener,ActionListener> responseWrapper)
-
Method Summary
-
Methods inherited from class org.elasticsearch.common.component.AbstractComponent
nodeName
-
-
-
-
Field Detail
-
FREE_CONTEXT_SCROLL_ACTION_NAME
public static final java.lang.String FREE_CONTEXT_SCROLL_ACTION_NAME
- See Also:
- Constant Field Values
-
FREE_CONTEXT_ACTION_NAME
public static final java.lang.String FREE_CONTEXT_ACTION_NAME
- See Also:
- Constant Field Values
-
CLEAR_SCROLL_CONTEXTS_ACTION_NAME
public static final java.lang.String CLEAR_SCROLL_CONTEXTS_ACTION_NAME
- See Also:
- Constant Field Values
-
DFS_ACTION_NAME
public static final java.lang.String DFS_ACTION_NAME
- See Also:
- Constant Field Values
-
QUERY_ACTION_NAME
public static final java.lang.String QUERY_ACTION_NAME
- See Also:
- Constant Field Values
-
QUERY_ID_ACTION_NAME
public static final java.lang.String QUERY_ID_ACTION_NAME
- See Also:
- Constant Field Values
-
QUERY_SCROLL_ACTION_NAME
public static final java.lang.String QUERY_SCROLL_ACTION_NAME
- See Also:
- Constant Field Values
-
QUERY_FETCH_SCROLL_ACTION_NAME
public static final java.lang.String QUERY_FETCH_SCROLL_ACTION_NAME
- See Also:
- Constant Field Values
-
FETCH_ID_SCROLL_ACTION_NAME
public static final java.lang.String FETCH_ID_SCROLL_ACTION_NAME
- See Also:
- Constant Field Values
-
FETCH_ID_ACTION_NAME
public static final java.lang.String FETCH_ID_ACTION_NAME
- See Also:
- Constant Field Values
-
QUERY_CAN_MATCH_NAME
public static final java.lang.String QUERY_CAN_MATCH_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SearchTransportService
public SearchTransportService(Settings settings, TransportService transportService, java.util.function.BiFunction<Transport.Connection,org.elasticsearch.action.search.SearchActionListener,ActionListener> responseWrapper)
-
-
Method Detail
-
sendFreeContext
public void sendFreeContext(Transport.Connection connection, long contextId, OriginalIndices originalIndices)
-
sendFreeContext
public void sendFreeContext(Transport.Connection connection, long contextId, ActionListener<SearchTransportService.SearchFreeContextResponse> listener)
-
sendCanMatch
public void sendCanMatch(Transport.Connection connection, ShardSearchTransportRequest request, SearchTask task, ActionListener<SearchService.CanMatchResponse> listener)
-
sendClearAllScrollContexts
public void sendClearAllScrollContexts(Transport.Connection connection, ActionListener<TransportResponse> listener)
-
sendExecuteDfs
public void sendExecuteDfs(Transport.Connection connection, ShardSearchTransportRequest request, SearchTask task, org.elasticsearch.action.search.SearchActionListener<DfsSearchResult> listener)
-
sendExecuteQuery
public void sendExecuteQuery(Transport.Connection connection, ShardSearchTransportRequest request, SearchTask task, org.elasticsearch.action.search.SearchActionListener<SearchPhaseResult> listener)
-
sendExecuteQuery
public void sendExecuteQuery(Transport.Connection connection, QuerySearchRequest request, SearchTask task, org.elasticsearch.action.search.SearchActionListener<QuerySearchResult> listener)
-
sendExecuteScrollQuery
public void sendExecuteScrollQuery(Transport.Connection connection, InternalScrollSearchRequest request, SearchTask task, org.elasticsearch.action.search.SearchActionListener<ScrollQuerySearchResult> listener)
-
sendExecuteScrollFetch
public void sendExecuteScrollFetch(Transport.Connection connection, InternalScrollSearchRequest request, SearchTask task, org.elasticsearch.action.search.SearchActionListener<ScrollQueryFetchSearchResult> listener)
-
sendExecuteFetch
public void sendExecuteFetch(Transport.Connection connection, ShardFetchSearchRequest request, SearchTask task, org.elasticsearch.action.search.SearchActionListener<FetchSearchResult> listener)
-
sendExecuteFetchScroll
public void sendExecuteFetchScroll(Transport.Connection connection, ShardFetchRequest request, SearchTask task, org.elasticsearch.action.search.SearchActionListener<FetchSearchResult> listener)
-
getRemoteClusterService
public RemoteClusterService getRemoteClusterService()
-
getPendingSearchRequests
public java.util.Map<java.lang.String,java.lang.Long> getPendingSearchRequests()
Return a map of nodeId to pending number of search requests. This is a snapshot of the current pending search and not a live map.
-
registerRequestHandler
public static void registerRequestHandler(TransportService transportService, SearchService searchService)
-
-