public class ClusterSearchShardsRequest extends MasterNodeReadRequest<ClusterSearchShardsRequest> implements IndicesRequest.Replaceable
TransportRequest.Empty
IndicesRequest.Replaceable
local
DEFAULT_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, local
masterNodeTimeout, masterNodeTimeout, masterNodeTimeout
getShouldStoreResult
getParentTask, setParentTask
remoteAddress, remoteAddress
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createTask, getDescription, setParentTask
public ClusterSearchShardsRequest()
public ClusterSearchShardsRequest(java.lang.String... indices)
public ActionRequestValidationException validate()
validate
in class ActionRequest
public ClusterSearchShardsRequest indices(java.lang.String... indices)
indices
in interface IndicesRequest.Replaceable
public java.lang.String[] indices()
indices
in interface IndicesRequest
public IndicesOptions indicesOptions()
IndicesRequest
indicesOptions
in interface IndicesRequest
public 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
Streamable
readFrom
in interface Streamable
readFrom
in class MasterNodeReadRequest<ClusterSearchShardsRequest>
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
writeTo
in class MasterNodeReadRequest<ClusterSearchShardsRequest>
java.io.IOException