Package org.elasticsearch.action.search
Class SearchTransportService
- java.lang.Object
-
- org.elasticsearch.action.search.SearchTransportService
-
public class SearchTransportService extends Object
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 StringCLEAR_SCROLL_CONTEXTS_ACTION_NAMEstatic StringDFS_ACTION_NAMEstatic StringFETCH_ID_ACTION_NAMEstatic StringFETCH_ID_SCROLL_ACTION_NAMEstatic StringFREE_CONTEXT_ACTION_NAMEstatic StringFREE_CONTEXT_SCROLL_ACTION_NAMEstatic StringQUERY_ACTION_NAMEstatic StringQUERY_CAN_MATCH_NAMEstatic StringQUERY_FETCH_SCROLL_ACTION_NAMEstatic StringQUERY_ID_ACTION_NAMEstatic StringQUERY_SCROLL_ACTION_NAME
-
Constructor Summary
Constructors Constructor Description SearchTransportService(TransportService transportService, BiFunction<Transport.Connection,org.elasticsearch.action.search.SearchActionListener,ActionListener> responseWrapper)
-
Method Summary
-
-
-
Field Detail
-
FREE_CONTEXT_SCROLL_ACTION_NAME
public static final String FREE_CONTEXT_SCROLL_ACTION_NAME
- See Also:
- Constant Field Values
-
FREE_CONTEXT_ACTION_NAME
public static final String FREE_CONTEXT_ACTION_NAME
- See Also:
- Constant Field Values
-
CLEAR_SCROLL_CONTEXTS_ACTION_NAME
public static final String CLEAR_SCROLL_CONTEXTS_ACTION_NAME
- See Also:
- Constant Field Values
-
DFS_ACTION_NAME
public static final String DFS_ACTION_NAME
- See Also:
- Constant Field Values
-
QUERY_ACTION_NAME
public static final String QUERY_ACTION_NAME
- See Also:
- Constant Field Values
-
QUERY_ID_ACTION_NAME
public static final String QUERY_ID_ACTION_NAME
- See Also:
- Constant Field Values
-
QUERY_SCROLL_ACTION_NAME
public static final String QUERY_SCROLL_ACTION_NAME
- See Also:
- Constant Field Values
-
QUERY_FETCH_SCROLL_ACTION_NAME
public static final String QUERY_FETCH_SCROLL_ACTION_NAME
- See Also:
- Constant Field Values
-
FETCH_ID_SCROLL_ACTION_NAME
public static final String FETCH_ID_SCROLL_ACTION_NAME
- See Also:
- Constant Field Values
-
FETCH_ID_ACTION_NAME
public static final String FETCH_ID_ACTION_NAME
- See Also:
- Constant Field Values
-
QUERY_CAN_MATCH_NAME
public static final String QUERY_CAN_MATCH_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SearchTransportService
public SearchTransportService(TransportService transportService, 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, ShardSearchRequest request, SearchTask task, ActionListener<SearchService.CanMatchResponse> listener)
-
sendClearAllScrollContexts
public void sendClearAllScrollContexts(Transport.Connection connection, ActionListener<TransportResponse> listener)
-
sendExecuteDfs
public void sendExecuteDfs(Transport.Connection connection, ShardSearchRequest request, SearchTask task, org.elasticsearch.action.search.SearchActionListener<DfsSearchResult> listener)
-
sendExecuteQuery
public void sendExecuteQuery(Transport.Connection connection, ShardSearchRequest 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 Map<String,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)
-
-