public class ClusterSearchShardsRequest extends MasterNodeReadRequest<ClusterSearchShardsRequest> implements IndicesRequest.Replaceable
TransportRequest.EmptyIndicesRequest.ReplaceablelocalDEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeoutheaders| 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, localmasterNodeTimeout, masterNodeTimeout, masterNodeTimeoutcreateTask, createTask, setParentTaskgetDescriptionremoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContextpublic ClusterSearchShardsRequest()
public ClusterSearchShardsRequest(String... indices)
public ActionRequestValidationException validate()
validate in class ActionRequest<ClusterSearchShardsRequest>public ClusterSearchShardsRequest indices(String... indices)
indices in interface IndicesRequest.Replaceablepublic String[] indices()
indices in interface IndicesRequestpublic IndicesOptions indicesOptions()
IndicesRequestindicesOptions in interface IndicesRequestpublic 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 StreamablereadFrom in class MasterNodeReadRequest<ClusterSearchShardsRequest>IOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class MasterNodeReadRequest<ClusterSearchShardsRequest>IOExceptionCopyright © 2009–2017. All rights reserved.