Package org.opensearch.action.search
Class TransportSearchAction
java.lang.Object
org.opensearch.action.support.TransportAction<Request,Response>
org.opensearch.action.support.HandledTransportAction<SearchRequest,SearchResponse>
org.opensearch.action.search.TransportSearchAction
public class TransportSearchAction extends HandledTransportAction<SearchRequest,SearchResponse>
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
TransportSearchAction.SinglePhaseSearchAction
-
Field Summary
Fields Modifier and Type Field Description static Setting<org.opensearch.common.unit.TimeValue>
SEARCH_CANCEL_AFTER_TIME_INTERVAL_SETTING
static java.lang.String
SEARCH_CANCEL_AFTER_TIME_INTERVAL_SETTING_KEY
static Setting<java.lang.Long>
SHARD_COUNT_LIMIT_SETTING
The maximum number of shards for a single search request.Fields inherited from class org.opensearch.action.support.TransportAction
actionName, logger, taskManager
-
Constructor Summary
Constructors Constructor Description TransportSearchAction(NodeClient client, ThreadPool threadPool, CircuitBreakerService circuitBreakerService, TransportService transportService, SearchService searchService, SearchTransportService searchTransportService, SearchPhaseController searchPhaseController, ClusterService clusterService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, NamedWriteableRegistry namedWriteableRegistry)
-
Method Summary
Modifier and Type Method Description protected void
doExecute(Task task, SearchRequest searchRequest, ActionListener<SearchResponse> listener)
void
executeRequest(Task task, SearchRequest searchRequest, java.lang.String actionName, boolean includeSearchContext, TransportSearchAction.SinglePhaseSearchAction phaseSearchAction, ActionListener<SearchResponse> listener)
Methods inherited from class org.opensearch.action.support.TransportAction
execute, execute, execute
-
Field Details
-
SHARD_COUNT_LIMIT_SETTING
The maximum number of shards for a single search request. -
SEARCH_CANCEL_AFTER_TIME_INTERVAL_SETTING_KEY
public static final java.lang.String SEARCH_CANCEL_AFTER_TIME_INTERVAL_SETTING_KEY- See Also:
- Constant Field Values
-
SEARCH_CANCEL_AFTER_TIME_INTERVAL_SETTING
public static final Setting<org.opensearch.common.unit.TimeValue> SEARCH_CANCEL_AFTER_TIME_INTERVAL_SETTING
-
-
Constructor Details
-
TransportSearchAction
@Inject public TransportSearchAction(NodeClient client, ThreadPool threadPool, CircuitBreakerService circuitBreakerService, TransportService transportService, SearchService searchService, SearchTransportService searchTransportService, SearchPhaseController searchPhaseController, ClusterService clusterService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, NamedWriteableRegistry namedWriteableRegistry)
-
-
Method Details
-
doExecute
protected void doExecute(Task task, SearchRequest searchRequest, ActionListener<SearchResponse> listener)- Specified by:
doExecute
in classTransportAction<SearchRequest,SearchResponse>
-
executeRequest
public void executeRequest(Task task, SearchRequest searchRequest, java.lang.String actionName, boolean includeSearchContext, TransportSearchAction.SinglePhaseSearchAction phaseSearchAction, ActionListener<SearchResponse> listener)
-