org.elasticsearch.action.search.TransportSearchAction Java Examples
The following examples show how to use
org.elasticsearch.action.search.TransportSearchAction.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TransportAddFeatureToSetAction.java From elasticsearch-learning-to-rank with Apache License 2.0 | 6 votes |
AsyncAction(Task task, AddFeaturesToSetRequest request, ActionListener<AddFeaturesToSetResponse> listener, ClusterService clusterService, TransportSearchAction searchAction, TransportGetAction getAction, TransportFeatureStoreAction featureStoreAction) { this.task = task; this.listener = listener; this.featureSetName = request.getFeatureSet(); this.featureNamesQuery = request.getFeatureNameQuery(); this.features = request.getFeatures(); if (featureNamesQuery != null) { assert features == null || features.isEmpty(); // 2 async actions if we fetch features from store, one otherwize. this.countdown = new CountDown(2); } else { assert features != null && !features.isEmpty(); // 1 async actions if we already have features. this.countdown = new CountDown(1); } this.merge = request.isMerge(); this.store = request.getStore(); this.routing = request.getRouting(); this.clusterService = clusterService; this.searchAction = searchAction; this.getAction = getAction; this.featureStoreAction = featureStoreAction; this.validation = request.getValidation(); }
Example #2
Source File: ClusteringAction.java From elasticsearch-carrot2 with Apache License 2.0 | 6 votes |
@Inject public TransportClusteringAction(TransportService transportService, TransportSearchAction searchAction, ClusteringContext controllerSingleton, ActionFilters actionFilters) { super(ClusteringAction.NAME, actionFilters, transportService.getTaskManager()); this.searchAction = searchAction; this.context = controllerSingleton; transportService.registerRequestHandler( ClusteringAction.NAME, ThreadPool.Names.SAME, ClusteringActionRequest::new, new TransportHandler()); }
Example #3
Source File: TransportAddFeatureToSetAction.java From elasticsearch-learning-to-rank with Apache License 2.0 | 5 votes |
@Inject public TransportAddFeatureToSetAction(Settings settings, ThreadPool threadPool, TransportService transportService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, ClusterService clusterService, TransportSearchAction searchAction, TransportGetAction getAction, TransportFeatureStoreAction featureStoreAction) { super(AddFeaturesToSetAction.NAME, transportService, actionFilters, AddFeaturesToSetRequest::new); this.clusterService = clusterService; this.searchAction = searchAction; this.getAction = getAction; this.featureStoreAction = featureStoreAction; }
Example #4
Source File: TransportCoordinateSearchAction.java From siren-join with GNU Affero General Public License v3.0 | 5 votes |
@Inject public TransportCoordinateSearchAction(Settings settings, ThreadPool threadPool, TransportService transportService, FilterJoinCacheService cacheService, ActionFilters actionFilters, TransportSearchAction searchAction, IndexNameExpressionResolver indexNameExpressionResolver, Client client) { super(settings, CoordinateSearchAction.NAME, threadPool, transportService, actionFilters, indexNameExpressionResolver, client, SearchRequest.class); this.searchAction = searchAction; this.cacheService = cacheService; }
Example #5
Source File: TransportPutWarmerAction.java From Elasticsearch with Apache License 2.0 | 4 votes |
@Inject public TransportPutWarmerAction(Settings settings, TransportService transportService, ClusterService clusterService, ThreadPool threadPool, TransportSearchAction searchAction, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver) { super(settings, PutWarmerAction.NAME, transportService, clusterService, threadPool, actionFilters, indexNameExpressionResolver, PutWarmerRequest.class); this.searchAction = searchAction; }