public class ClusterSearchShardsRequest extends MasterNodeReadRequest<ClusterSearchShardsRequest> implements IndicesRequest.Replaceable
TransportRequest.Empty
IndicesRequest.Replaceable
local
DEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeout
headers
Constructor and Description |
---|
ClusterSearchShardsRequest() |
ClusterSearchShardsRequest(String... indices) |
Modifier and Type | Method and Description |
---|---|
String[] |
indices()
The indices
|
ClusterSearchShardsRequest |
indices(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) |
String |
preference() |
ClusterSearchShardsRequest |
preference(String preference)
Sets the preference to execute the search.
|
void |
readFrom(StreamInput in) |
String |
routing()
A comma separated list of routing values to control the shards the search will be executed on.
|
ClusterSearchShardsRequest |
routing(String... routings)
The routing values to control the shards that the search will be executed on.
|
ClusterSearchShardsRequest |
routing(String routing)
A comma separated list of routing values to control the shards the search will be executed on.
|
String[] |
types()
The document types to execute the search against.
|
ClusterSearchShardsRequest |
types(String... types)
The document types to execute the search against.
|
ActionRequestValidationException |
validate() |
void |
writeTo(StreamOutput out) |
local, local
masterNodeTimeout, masterNodeTimeout, masterNodeTimeout
createTask, createTask, setParentTask
getDescription
remoteAddress, remoteAddress
contextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContext
public ClusterSearchShardsRequest()
public ClusterSearchShardsRequest(String... indices)
public ActionRequestValidationException validate()
validate
in class ActionRequest<ClusterSearchShardsRequest>
public ClusterSearchShardsRequest indices(String... indices)
indices
in interface IndicesRequest.Replaceable
public String[] indices()
indices
in interface IndicesRequest
public IndicesOptions indicesOptions()
IndicesRequest
indicesOptions
in interface IndicesRequest
public ClusterSearchShardsRequest indicesOptions(IndicesOptions indicesOptions)
public String[] types()
public ClusterSearchShardsRequest types(String... types)
public String routing()
public ClusterSearchShardsRequest routing(String routing)
public ClusterSearchShardsRequest routing(String... routings)
public ClusterSearchShardsRequest preference(String preference)
public String preference()
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
readFrom
in class MasterNodeReadRequest<ClusterSearchShardsRequest>
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class MasterNodeReadRequest<ClusterSearchShardsRequest>
IOException
Copyright © 2009–2016. All rights reserved.