public class MultiSearchRequestBuilder extends ActionRequestBuilder<MultiSearchRequest,MultiSearchResponse,MultiSearchRequestBuilder>
action, client, request
Constructor and Description |
---|
MultiSearchRequestBuilder(ElasticsearchClient client,
MultiSearchAction action) |
Modifier and Type | Method and Description |
---|---|
MultiSearchRequestBuilder |
add(SearchRequest request)
Add a search request to execute.
|
MultiSearchRequestBuilder |
add(SearchRequestBuilder request)
Add a search request to execute.
|
MultiSearchRequestBuilder |
setIndicesOptions(IndicesOptions indicesOptions)
Specifies what type of requested indices to ignore and how to deal with wildcard indices expressions.
|
MultiSearchRequestBuilder |
setMaxConcurrentSearchRequests(int maxConcurrentSearchRequests)
Sets how many search requests specified in this multi search requests are allowed to be ran concurrently.
|
beforeExecute, execute, execute, get, get, get, request
public MultiSearchRequestBuilder(ElasticsearchClient client, MultiSearchAction action)
public MultiSearchRequestBuilder add(SearchRequest request)
If ignoreIndices has been set on the search request, then the indicesOptions of the multi search request will not be used (if set).
public MultiSearchRequestBuilder add(SearchRequestBuilder request)
public MultiSearchRequestBuilder setIndicesOptions(IndicesOptions indicesOptions)
Invoke this method before invoking add(SearchRequestBuilder)
.
public MultiSearchRequestBuilder setMaxConcurrentSearchRequests(int maxConcurrentSearchRequests)