Uses of Class
org.elasticsearch.action.search.SearchRequest
-
-
Uses of SearchRequest in org.elasticsearch.action.search
Methods in org.elasticsearch.action.search that return SearchRequest Modifier and Type Method Description SearchRequestSearchRequest. allowPartialSearchResults(boolean allowPartialSearchResults)Sets if this request should allow partial results.SearchRequestSearchRequest. indices(String... indices)Sets the indices the search will be executed on.SearchRequestSearchRequest. indicesOptions(IndicesOptions indicesOptions)SearchRequestSearchRequest. preference(String preference)Sets the preference to execute the search.SearchRequestSearchRequest. requestCache(Boolean requestCache)Sets if this request should use the request cache or not, assuming that it can (for example, if "now" is used, it will never be cached).SearchRequestSearchRequest. routing(String routing)A comma separated list of routing values to control the shards the search will be executed on.SearchRequestSearchRequest. routing(String... routings)The routing values to control the shards that the search will be executed on.SearchRequestSearchRequest. scroll(String keepAlive)If set, will enable scrolling of the search request for the specified timeout.SearchRequestSearchRequest. scroll(TimeValue keepAlive)If set, will enable scrolling of the search request for the specified timeout.SearchRequestSearchRequest. scroll(Scroll scroll)If set, will enable scrolling of the search request.SearchRequestSearchRequest. searchType(String searchType)The a string representation search type to execute, defaults toSearchType.DEFAULT.SearchRequestSearchRequest. searchType(SearchType searchType)The search type to execute, defaults toSearchType.DEFAULT.SearchRequestSearchRequest. source(SearchSourceBuilder sourceBuilder)The source of the search request.SearchRequestSearchRequest. types(String... types)Deprecated.Types are in the process of being removed.Methods in org.elasticsearch.action.search that return types with arguments of type SearchRequest Modifier and Type Method Description List<SearchRequest>MultiSearchRequest. requests()Methods in org.elasticsearch.action.search with parameters of type SearchRequest Modifier and Type Method Description MultiSearchRequestMultiSearchRequest. add(SearchRequest request)Add a search request to execute.MultiSearchRequestBuilderMultiSearchRequestBuilder. add(SearchRequest request)Add a search request to execute.protected voidTransportSearchAction. doExecute(Task task, SearchRequest searchRequest, ActionListener<SearchResponse> listener)static voidMultiSearchRequest. writeSearchRequestParams(SearchRequest request, XContentBuilder xContentBuilder)Method parameters in org.elasticsearch.action.search with type arguments of type SearchRequest Modifier and Type Method Description static voidMultiSearchRequest. readMultiLineFormat(BytesReference data, XContent xContent, CheckedBiConsumer<SearchRequest,XContentParser,IOException> consumer, String[] indices, IndicesOptions indicesOptions, String[] types, String routing, String searchType, Boolean ccsMinimizeRoundtrips, NamedXContentRegistry registry, boolean allowExplicitIndex, DeprecationLogger deprecationLogger)Constructors in org.elasticsearch.action.search with parameters of type SearchRequest Constructor Description SearchRequest(SearchRequest searchRequest)Constructs a new search request from the provided search request -
Uses of SearchRequest in org.elasticsearch.client
Methods in org.elasticsearch.client that return SearchRequest Modifier and Type Method Description static SearchRequestRequests. searchRequest(String... indices)Creates a search request against one or more indices.Methods in org.elasticsearch.client with parameters of type SearchRequest Modifier and Type Method Description ActionFuture<SearchResponse>Client. search(SearchRequest request)Search across one or more indices and one or more types with a query.voidClient. search(SearchRequest request, ActionListener<SearchResponse> listener)Search across one or more indices and one or more types with a query.SearchResponseRestHighLevelClient. search(SearchRequest searchRequest, RequestOptions options)Executes a search request using the Search API.SearchResponseRollupClient. search(SearchRequest request, RequestOptions options)Perform a rollup search.CancellableRestHighLevelClient. searchAsync(SearchRequest searchRequest, RequestOptions options, ActionListener<SearchResponse> listener)Asynchronously executes a search using the Search API.CancellableRollupClient. searchAsync(SearchRequest request, RequestOptions options, ActionListener<SearchResponse> listener)Perform a rollup search. -
Uses of SearchRequest in org.elasticsearch.client.support
Methods in org.elasticsearch.client.support with parameters of type SearchRequest Modifier and Type Method Description ActionFuture<SearchResponse>AbstractClient. search(SearchRequest request)voidAbstractClient. search(SearchRequest request, ActionListener<SearchResponse> listener) -
Uses of SearchRequest in org.elasticsearch.index.reindex
Methods in org.elasticsearch.index.reindex that return SearchRequest Modifier and Type Method Description SearchRequestAbstractBulkByScrollRequest. getSearchRequest()The search request that matches the documents to process.Methods in org.elasticsearch.index.reindex with parameters of type SearchRequest Modifier and Type Method Description abstract SelfAbstractBulkByScrollRequest. forSlice(TaskId slicingTask, SearchRequest slice, int totalSlices)Build a new request for a slice of the parent request.DeleteByQueryRequestDeleteByQueryRequest. forSlice(TaskId slicingTask, SearchRequest slice, int totalSlices)ReindexRequestReindexRequest. forSlice(TaskId slicingTask, SearchRequest slice, int totalSlices)UpdateByQueryRequestUpdateByQueryRequest. forSlice(TaskId slicingTask, SearchRequest slice, int totalSlices)Constructors in org.elasticsearch.index.reindex with parameters of type SearchRequest Constructor Description AbstractBulkByScrollRequest(SearchRequest searchRequest, boolean setDefaults)Constructor for actual use.AbstractBulkIndexByScrollRequest(SearchRequest searchRequest, boolean setDefaults)Constructor for actual use. -
Uses of SearchRequest in org.elasticsearch.rest.action.search
Methods in org.elasticsearch.rest.action.search with parameters of type SearchRequest Modifier and Type Method Description static voidRestSearchAction. checkRestTotalHits(RestRequest restRequest, SearchRequest searchRequest)Modify the search request to accurately count the total hits that match the query ifRestSearchAction.TOTAL_HITS_AS_INT_PARAMis set.static voidRestSearchAction. parseSearchRequest(SearchRequest searchRequest, RestRequest request, XContentParser requestContentParser, IntConsumer setSize)Parses the rest request on top of the SearchRequest, preserving values that are not overridden by the rest request.Method parameters in org.elasticsearch.rest.action.search with type arguments of type SearchRequest Modifier and Type Method Description static voidRestMultiSearchAction. parseMultiLineRequest(RestRequest request, IndicesOptions indicesOptions, boolean allowExplicitIndex, CheckedBiConsumer<SearchRequest,XContentParser,IOException> consumer)Parses a multi-lineRestRequestbody, instantiating aSearchRequestfor each line and applying the given consumer. -
Uses of SearchRequest in org.elasticsearch.script.mustache
Methods in org.elasticsearch.script.mustache that return SearchRequest Modifier and Type Method Description SearchRequestSearchTemplateRequest. getRequest()Methods in org.elasticsearch.script.mustache with parameters of type SearchRequest Modifier and Type Method Description voidSearchTemplateRequest. setRequest(SearchRequest request)SearchTemplateRequestBuilderSearchTemplateRequestBuilder. setRequest(SearchRequest searchRequest)Constructors in org.elasticsearch.script.mustache with parameters of type SearchRequest Constructor Description SearchTemplateRequest(SearchRequest searchRequest) -
Uses of SearchRequest in org.elasticsearch.search.internal
Constructors in org.elasticsearch.search.internal with parameters of type SearchRequest Constructor Description ShardSearchRequest(OriginalIndices originalIndices, SearchRequest searchRequest, ShardId shardId, int numberOfShards, AliasFilter aliasFilter, float indexBoost, long nowInMillis, String clusterAlias, String[] indexRoutings)
-