public class ClusterSearchShardsRequestBuilder extends MasterNodeReadOperationRequestBuilder<ClusterSearchShardsRequest,ClusterSearchShardsResponse,ClusterSearchShardsRequestBuilder,ClusterAdminClient>
client, request
Constructor and Description |
---|
ClusterSearchShardsRequestBuilder(ClusterAdminClient clusterClient) |
Modifier and Type | Method and Description |
---|---|
protected void |
doExecute(ActionListener<ClusterSearchShardsResponse> listener) |
ClusterSearchShardsRequestBuilder |
setIndices(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(String preference)
Sets the preference to execute the search.
|
ClusterSearchShardsRequestBuilder |
setRouting(String... routing)
The routing values to control the shards that the search will be executed on.
|
ClusterSearchShardsRequestBuilder |
setRouting(String routing)
A comma separated list of routing values to control the shards the search will be executed on.
|
ClusterSearchShardsRequestBuilder |
setTypes(String... types)
The document types to execute the search against.
|
setLocal
setMasterNodeTimeout, setMasterNodeTimeout
execute, execute, get, get, get, putHeader, request, setListenerThreaded
public ClusterSearchShardsRequestBuilder(ClusterAdminClient clusterClient)
public ClusterSearchShardsRequestBuilder setIndices(String... indices)
public ClusterSearchShardsRequestBuilder setTypes(String... types)
public ClusterSearchShardsRequestBuilder setRouting(String routing)
public ClusterSearchShardsRequestBuilder setRouting(String... routing)
public ClusterSearchShardsRequestBuilder setPreference(String preference)
public ClusterSearchShardsRequestBuilder setIndicesOptions(IndicesOptions indicesOptions)
protected void doExecute(ActionListener<ClusterSearchShardsResponse> listener)
Copyright © 2009–2015. All rights reserved.