Class ClusterSearchShardsRequestBuilder
java.lang.Object
org.elasticsearch.action.ActionRequestBuilder<Request,Response>
org.elasticsearch.action.support.master.MasterNodeOperationRequestBuilder<Request,Response,RequestBuilder>
org.elasticsearch.action.support.master.MasterNodeReadOperationRequestBuilder<ClusterSearchShardsRequest,ClusterSearchShardsResponse,ClusterSearchShardsRequestBuilder>
org.elasticsearch.action.admin.cluster.shards.ClusterSearchShardsRequestBuilder
public class ClusterSearchShardsRequestBuilder
extends MasterNodeReadOperationRequestBuilder<ClusterSearchShardsRequest,ClusterSearchShardsResponse,ClusterSearchShardsRequestBuilder>
-
Field Summary
Fields inherited from class org.elasticsearch.action.ActionRequestBuilder
action, client, request
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionsetIndices
(String... indices) Sets the indices the search will be executed on.setIndicesOptions
(IndicesOptions indicesOptions) Specifies what type of requested indices to ignore and how to deal indices wildcard expressions.setPreference
(String preference) Sets the preference to execute the search.setRouting
(String routing) A comma separated list of routing values to control the shards the search will be executed on.setRouting
(String... routing) The routing values to control the shards that the search will be executed on.Methods inherited from class org.elasticsearch.action.support.master.MasterNodeReadOperationRequestBuilder
setLocal
Methods inherited from class org.elasticsearch.action.support.master.MasterNodeOperationRequestBuilder
setMasterNodeTimeout, setMasterNodeTimeout
-
Constructor Details
-
ClusterSearchShardsRequestBuilder
public ClusterSearchShardsRequestBuilder(ElasticsearchClient client, ClusterSearchShardsAction action)
-
-
Method Details
-
setIndices
Sets the indices the search will be executed on. -
setRouting
A comma separated list of routing values to control the shards the search will be executed on. -
setRouting
The routing values to control the shards that the search will be executed on. -
setPreference
Sets the preference to execute the search. Defaults to randomize across shards. Can be set to_local
to prefer local shards or a custom value, which guarantees that the same order will be used across different requests. -
setIndicesOptions
Specifies what type of requested indices to ignore and how to deal indices wildcard expressions. For example indices that don't exist.
-