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.Empty
IndicesRequest.Replaceable
consistencyLevel, indices, replicationType, timeout
Constructor and Description |
---|
DeleteByQueryRequest() |
DeleteByQueryRequest(ActionRequest originalRequest)
Copy constructor that creates a new delete by query request that is a copy of the one provided as an argument.
|
DeleteByQueryRequest(String... indices)
Constructs a new delete by query request to run against the provided indices.
|
Modifier and Type | Method and Description |
---|---|
void |
readFrom(StreamInput in) |
String |
routing()
A comma separated list of routing values to control the shards the search will be executed on.
|
DeleteByQueryRequest |
routing(String... routings)
The routing values to control the shards that the search will be executed on.
|
DeleteByQueryRequest |
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.
|
DeleteByQueryRequest |
source(byte[] source)
The source to execute.
|
DeleteByQueryRequest |
source(byte[] source,
int offset,
int length,
boolean unsafe)
The source to execute.
|
DeleteByQueryRequest |
source(BytesReference source,
boolean unsafe) |
DeleteByQueryRequest |
source(Map source)
The source to execute in the form of a map.
|
DeleteByQueryRequest |
source(QuerySourceBuilder sourceBuilder)
The source to execute.
|
DeleteByQueryRequest |
source(String query)
The source to execute.
|
DeleteByQueryRequest |
source(XContentBuilder builder) |
String |
toString() |
String[] |
types()
The types of documents the query will run against.
|
DeleteByQueryRequest |
types(String... types)
The types of documents the query will run against.
|
ActionRequestValidationException |
validate() |
void |
writeTo(StreamOutput out) |
consistencyLevel, consistencyLevel, indices, indices, indicesOptions, indicesOptions, replicationType, replicationType, replicationType, timeout, timeout, timeout
listenerThreaded, listenerThreaded
getHeader, getHeaders, hasHeader, putHeader, remoteAddress, remoteAddress
contextSize, copyContextFrom, getContext, getFromContext, getFromContext, hasInContext, isContextEmpty, putAllInContext, putInContext
public 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, boolean unsafe)
public DeleteByQueryRequest source(BytesReference source, boolean unsafe)
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 Streamable
readFrom
in class IndicesReplicationOperationRequest<DeleteByQueryRequest>
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class IndicesReplicationOperationRequest<DeleteByQueryRequest>
IOException
Copyright © 2009–2015. All rights reserved.