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
-
Constructor Summary
Constructors Constructor Description ClusterSearchShardsRequestBuilder(ElasticsearchClient client, ClusterSearchShardsAction action) -
Method Summary
Modifier and Type Method Description ClusterSearchShardsRequestBuildersetIndices(java.lang.String... indices)Sets the indices the search will be executed on.ClusterSearchShardsRequestBuildersetIndicesOptions(IndicesOptions indicesOptions)Specifies what type of requested indices to ignore and how to deal indices wildcard expressions.ClusterSearchShardsRequestBuildersetPreference(java.lang.String preference)Sets the preference to execute the search.ClusterSearchShardsRequestBuildersetRouting(java.lang.String routing)A comma separated list of routing values to control the shards the search will be executed on.ClusterSearchShardsRequestBuildersetRouting(java.lang.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
setLocalMethods 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_localto 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.
-