@Deprecated public class DeleteByQueryRequest extends IndicesReplicationOperationRequest<DeleteByQueryRequest>
Requests.deleteByQueryRequest(String...).
The request requires the source to be set either using source(QuerySourceBuilder),
or source(byte[]).
TransportRequest.EmptyIndicesRequest.ReplaceableconsistencyLevel, indices, replicationType, timeoutheaders| Constructor and Description |
|---|
DeleteByQueryRequest()
Deprecated.
|
DeleteByQueryRequest(ActionRequest originalRequest)
Deprecated.
Copy constructor that creates a new delete by query request that is a copy of the one provided as an argument.
|
DeleteByQueryRequest(String... indices)
Deprecated.
Constructs a new delete by query request to run against the provided indices.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
DeleteByQueryRequest |
routing(String... routings)
Deprecated.
The routing values to control the shards that the search will be executed on.
|
DeleteByQueryRequest |
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.
|
DeleteByQueryRequest |
source(byte[] source)
Deprecated.
The source to execute.
|
DeleteByQueryRequest |
source(byte[] source,
int offset,
int length)
Deprecated.
The source to execute.
|
DeleteByQueryRequest |
source(BytesReference source)
Deprecated.
|
DeleteByQueryRequest |
source(Map source)
Deprecated.
The source to execute in the form of a map.
|
DeleteByQueryRequest |
source(QuerySourceBuilder sourceBuilder)
Deprecated.
The source to execute.
|
DeleteByQueryRequest |
source(String query)
Deprecated.
The source to execute.
|
DeleteByQueryRequest |
source(XContentBuilder builder)
Deprecated.
|
String |
toString()
Deprecated.
|
String[] |
types()
Deprecated.
The types of documents the query will run against.
|
DeleteByQueryRequest |
types(String... types)
Deprecated.
The types of documents the query will run against.
|
ActionRequestValidationException |
validate()
Deprecated.
|
void |
writeTo(StreamOutput out)
Deprecated.
|
consistencyLevel, consistencyLevel, indices, indices, indicesOptions, indicesOptions, replicationType, replicationType, replicationType, timeout, timeout, timeoutlistenerThreaded, listenerThreadedputHeader, remoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putInContextpublic DeleteByQueryRequest(String... indices)
public DeleteByQueryRequest()
public DeleteByQueryRequest(ActionRequest originalRequest)
public ActionRequestValidationException validate()
validate in class IndicesReplicationOperationRequest<DeleteByQueryRequest>public BytesReference source()
public DeleteByQueryRequest source(QuerySourceBuilder sourceBuilder)
public DeleteByQueryRequest source(String query)
source(byte[])
or source(QuerySourceBuilder).public DeleteByQueryRequest source(Map source)
public DeleteByQueryRequest source(XContentBuilder builder)
public DeleteByQueryRequest source(byte[] source)
public DeleteByQueryRequest source(byte[] source, int offset, int length)
public DeleteByQueryRequest source(BytesReference source)
public String[] types()
public String routing()
public DeleteByQueryRequest routing(String routing)
public DeleteByQueryRequest routing(String... routings)
public DeleteByQueryRequest types(String... types)
public void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class IndicesReplicationOperationRequest<DeleteByQueryRequest>IOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class IndicesReplicationOperationRequest<DeleteByQueryRequest>IOExceptionCopyright © 2009–2016. All rights reserved.