IndicesRequest
, IndicesRequest.Replaceable
, Streamable
, Writeable
, TaskAwareRequest
public class DeleteByQueryRequest extends AbstractBulkByScrollRequest<DeleteByQueryRequest> implements IndicesRequest.Replaceable
DeleteByQueryRequest
that uses scrolling and bulk requests to delete all documents matching
the query. This can have performance as well as visibility implications.
Delete-by-query now has the following semantics:
IndicesRequest.Replaceable
TransportRequest.Empty
Writeable.Reader<V>, Writeable.Writer<V>
AUTO_SLICES, AUTO_SLICES_VALUE, SIZE_ALL_MATCHES
Constructor | Description |
---|---|
DeleteByQueryRequest() |
|
DeleteByQueryRequest(SearchRequest search) |
Modifier and Type | Method | Description |
---|---|---|
DeleteByQueryRequest |
forSlice(TaskId slicingTask,
SearchRequest slice,
int totalSlices) |
Build a new request for a slice of the parent request.
|
java.lang.String[] |
indices() |
Returns the array of indices that the action relates to
|
IndicesRequest |
indices(java.lang.String... indices) |
Sets the indices that the action relates to.
|
IndicesOptions |
indicesOptions() |
Returns the indices options used to resolve indices.
|
protected DeleteByQueryRequest |
self() |
`this` cast to Self.
|
java.lang.String |
toString() |
|
java.lang.String[] |
types() |
|
DeleteByQueryRequest |
types(java.lang.String... types) |
|
ActionRequestValidationException |
validate() |
createTask, doForSlice, getDescription, getMaxRetries, getRequestsPerSecond, getRetryBackoffInitialTime, getScrollTime, getSearchRequest, getShouldStoreResult, getSize, getSlices, getTimeout, getWaitForActiveShards, isAbortOnVersionConflict, isRefresh, readFrom, searchToString, setAbortOnVersionConflict, setConflicts, setMaxRetries, setRefresh, setRequestsPerSecond, setRetryBackoffInitialTime, setScroll, setShouldStoreResult, setSize, setSlices, setTimeout, setWaitForActiveShards, setWaitForActiveShards, writeTo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
setParentTask
remoteAddress, remoteAddress
getParentTask, setParentTask
public DeleteByQueryRequest()
public DeleteByQueryRequest(SearchRequest search)
protected DeleteByQueryRequest self()
AbstractBulkByScrollRequest
self
in class AbstractBulkByScrollRequest<DeleteByQueryRequest>
public ActionRequestValidationException validate()
validate
in class AbstractBulkByScrollRequest<DeleteByQueryRequest>
public DeleteByQueryRequest forSlice(TaskId slicingTask, SearchRequest slice, int totalSlices)
AbstractBulkByScrollRequest
forSlice
in class AbstractBulkByScrollRequest<DeleteByQueryRequest>
public java.lang.String toString()
toString
in class java.lang.Object
public IndicesRequest indices(java.lang.String... indices)
IndicesRequest.Replaceable
indices
in interface IndicesRequest.Replaceable
public java.lang.String[] indices()
IndicesRequest
indices
in interface IndicesRequest
public IndicesOptions indicesOptions()
IndicesRequest
indicesOptions
in interface IndicesRequest
public java.lang.String[] types()
public DeleteByQueryRequest types(java.lang.String... types)