public class ClusterSearchShardsRequest extends MasterNodeReadRequest<ClusterSearchShardsRequest> implements IndicesRequest.Replaceable
TransportRequest.EmptyIndicesRequest.ReplaceablelocalDEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeout| Constructor and Description |
|---|
ClusterSearchShardsRequest() |
ClusterSearchShardsRequest(java.lang.String... indices) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String[] |
indices()
The indices
|
ClusterSearchShardsRequest |
indices(java.lang.String... indices)
Sets the indices the search will be executed on.
|
IndicesOptions |
indicesOptions()
Returns the indices options used to resolve indices.
|
ClusterSearchShardsRequest |
indicesOptions(IndicesOptions indicesOptions) |
java.lang.String |
preference() |
ClusterSearchShardsRequest |
preference(java.lang.String preference)
Sets the preference to execute the search.
|
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
java.lang.String |
routing()
A comma separated list of routing values to control the shards the search will be executed on.
|
ClusterSearchShardsRequest |
routing(java.lang.String... routings)
The routing values to control the shards that the search will be executed on.
|
ClusterSearchShardsRequest |
routing(java.lang.String routing)
A comma separated list of routing values to control the shards the search will be executed on.
|
ActionRequestValidationException |
validate() |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
local, localmasterNodeTimeout, masterNodeTimeout, masterNodeTimeoutgetShouldStoreResultcreateTask, getDescription, getParentTask, setParentTask, setParentTaskremoteAddress, remoteAddresspublic ClusterSearchShardsRequest()
public ClusterSearchShardsRequest(java.lang.String... indices)
public ActionRequestValidationException validate()
validate in class ActionRequestpublic ClusterSearchShardsRequest indices(java.lang.String... indices)
indices in interface IndicesRequest.Replaceablepublic java.lang.String[] indices()
indices in interface IndicesRequestpublic IndicesOptions indicesOptions()
IndicesRequestindicesOptions in interface IndicesRequestpublic ClusterSearchShardsRequest indicesOptions(IndicesOptions indicesOptions)
public java.lang.String routing()
public ClusterSearchShardsRequest routing(java.lang.String routing)
public ClusterSearchShardsRequest routing(java.lang.String... routings)
public ClusterSearchShardsRequest preference(java.lang.String preference)
public java.lang.String preference()
public void readFrom(StreamInput in) throws java.io.IOException
StreamablereadFrom in interface StreamablereadFrom in class MasterNodeReadRequest<ClusterSearchShardsRequest>java.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface StreamablewriteTo in class MasterNodeReadRequest<ClusterSearchShardsRequest>java.io.IOException