SearchRequest
instead and set `size` to `0` and `terminate_after` to `1`@Deprecated public class ExistsRequest extends BroadcastRequest<ExistsRequest>
TransportRequest.Empty
IndicesRequest.Replaceable
Modifier and Type | Field and Description |
---|---|
static float |
DEFAULT_MIN_SCORE
Deprecated.
|
protected String |
routing
Deprecated.
|
indices
headers
Constructor and Description |
---|
ExistsRequest()
Deprecated.
|
ExistsRequest(String... indices)
Deprecated.
Constructs a new exists request against the provided indices.
|
Modifier and Type | Method and Description |
---|---|
float |
minScore()
Deprecated.
The minimum score of the documents to include in the count.
|
ExistsRequest |
minScore(float minScore)
Deprecated.
The minimum score of the documents to include in the count.
|
String |
preference()
Deprecated.
|
ExistsRequest |
preference(String preference)
Deprecated.
Routing preference for executing the search on shards
|
void |
readFrom(StreamInput in)
Deprecated.
|
String |
routing()
Deprecated.
A comma separated list of routing values to control the shards the search will be executed on.
|
ExistsRequest |
routing(String... routings)
Deprecated.
The routing values to control the shards that the search will be executed on.
|
ExistsRequest |
routing(String routing)
Deprecated.
A comma separated list of routing values to control the shards the search will be executed on.
|
BytesReference |
source()
Deprecated.
The source to execute.
|
ExistsRequest |
source(byte[] querySource)
Deprecated.
The source to execute.
|
ExistsRequest |
source(byte[] querySource,
int offset,
int length)
Deprecated.
The source to execute.
|
ExistsRequest |
source(BytesReference querySource)
Deprecated.
|
ExistsRequest |
source(Map querySource)
Deprecated.
The source to execute in the form of a map.
|
ExistsRequest |
source(QuerySourceBuilder sourceBuilder)
Deprecated.
The source to execute.
|
ExistsRequest |
source(String querySource)
Deprecated.
The source to execute.
|
ExistsRequest |
source(XContentBuilder builder)
Deprecated.
|
String |
toString()
Deprecated.
|
String[] |
types()
Deprecated.
The types of documents the query will run against.
|
ExistsRequest |
types(String... types)
Deprecated.
The types of documents the query will run against.
|
ActionRequestValidationException |
validate()
Deprecated.
|
void |
writeTo(StreamOutput out)
Deprecated.
|
indices, indices, indicesOptions, indicesOptions
createTask, getDescription
remoteAddress, remoteAddress
contextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContext
public static final float DEFAULT_MIN_SCORE
public ExistsRequest()
public ExistsRequest(String... indices)
public ActionRequestValidationException validate()
validate
in class BroadcastRequest<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)
public ExistsRequest source(BytesReference querySource)
public String[] types()
public ExistsRequest types(String... types)
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
readFrom
in class BroadcastRequest<ExistsRequest>
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class BroadcastRequest<ExistsRequest>
IOException
Copyright © 2009–2016. All rights reserved.