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
Constructors Constructor Description ClusterSearchShardsRequestBuilder(ElasticsearchClient client, ClusterSearchShardsAction action)
-
Method Summary
Modifier and Type Method Description ClusterSearchShardsRequestBuilder
setIndices(java.lang.String... indices)
Sets the indices the search will be executed on.ClusterSearchShardsRequestBuilder
setIndicesOptions(IndicesOptions indicesOptions)
Specifies what type of requested indices to ignore and how to deal indices wildcard expressions.ClusterSearchShardsRequestBuilder
setPreference(java.lang.String preference)
Sets the preference to execute the search.ClusterSearchShardsRequestBuilder
setRouting(java.lang.String routing)
A comma separated list of routing values to control the shards the search will be executed on.ClusterSearchShardsRequestBuilder
setRouting(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
setLocal
Methods inherited from class org.elasticsearch.action.support.master.MasterNodeOperationRequestBuilder
setMasterNodeTimeout, setMasterNodeTimeout
Methods inherited from class org.elasticsearch.action.ActionRequestBuilder
execute, execute, get, get, get, request
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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.
-