public class ExistsRequest extends BroadcastOperationRequest<ExistsRequest>
TransportRequest.EmptyIndicesRequest.Replaceable| Modifier and Type | Field and Description |
|---|---|
static float |
DEFAULT_MIN_SCORE |
protected String |
routing |
indices| Constructor and Description |
|---|
ExistsRequest(String... indices)
Constructs a new exists request against the provided indices.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
beforeStart() |
float |
minScore()
The minimum score of the documents to include in the count.
|
ExistsRequest |
minScore(float minScore)
The minimum score of the documents to include in the count.
|
String |
preference() |
ExistsRequest |
preference(String preference)
Routing preference for executing the search on shards
|
void |
readFrom(StreamInput in) |
String |
routing()
A comma separated list of routing values to control the shards the search will be executed on.
|
ExistsRequest |
routing(String... routings)
The routing values to control the shards that the search will be executed on.
|
ExistsRequest |
routing(String routing)
A comma separated list of routing values to control the shards the search will be executed on.
|
BytesReference |
source()
The source to execute.
|
ExistsRequest |
source(byte[] querySource)
The source to execute.
|
ExistsRequest |
source(byte[] querySource,
int offset,
int length,
boolean unsafe)
The source to execute.
|
ExistsRequest |
source(BytesReference querySource,
boolean unsafe) |
ExistsRequest |
source(Map querySource)
The source to execute in the form of a map.
|
ExistsRequest |
source(QuerySourceBuilder sourceBuilder)
The source to execute.
|
ExistsRequest |
source(String querySource)
The source to execute.
|
ExistsRequest |
source(XContentBuilder builder) |
String |
toString() |
String[] |
types()
The types of documents the query will run against.
|
ExistsRequest |
types(String... types)
The types of documents the query will run against.
|
ActionRequestValidationException |
validate() |
void |
writeTo(StreamOutput out) |
beforeLocalFork, indices, indices, indicesOptions, indicesOptionslistenerThreaded, listenerThreadedgetHeader, getHeaders, hasHeader, putHeader, remoteAddress, remoteAddresscontextSize, copyContextFrom, getContext, getFromContext, getFromContext, hasInContext, isContextEmpty, putAllInContext, putInContextpublic static final float DEFAULT_MIN_SCORE
public ExistsRequest(String... indices)
public ActionRequestValidationException validate()
validate in class BroadcastOperationRequest<ExistsRequest>protected void beforeStart()
beforeStart in class BroadcastOperationRequest<ExistsRequest>public float minScore()
public ExistsRequest minScore(float minScore)
public String routing()
public ExistsRequest routing(String routing)
public ExistsRequest routing(String... routings)
public ExistsRequest preference(String preference)
public String preference()
public BytesReference source()
public ExistsRequest source(QuerySourceBuilder sourceBuilder)
public ExistsRequest source(Map querySource)
public ExistsRequest source(XContentBuilder builder)
public ExistsRequest source(String querySource)
source(byte[])
or source(QuerySourceBuilder).public ExistsRequest source(byte[] querySource)
public ExistsRequest source(byte[] querySource, int offset, int length, boolean unsafe)
public ExistsRequest source(BytesReference querySource, boolean unsafe)
public String[] types()
public ExistsRequest types(String... types)
public void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class BroadcastOperationRequest<ExistsRequest>IOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class BroadcastOperationRequest<ExistsRequest>IOExceptionCopyright © 2009–2015. All rights reserved.