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:
TransportRequest.Empty
IndicesRequest.Replaceable
SIZE_ALL_MATCHES
Constructor and Description |
---|
DeleteByQueryRequest() |
DeleteByQueryRequest(SearchRequest search) |
Modifier and Type | Method and Description |
---|---|
DeleteByQueryRequest |
forSlice(TaskId slicingTask,
SearchRequest slice)
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, getSearchRequest, getShouldStoreResult, getSize, getSlices, getTimeout, getWaitForActiveShards, isAbortOnVersionConflict, isRefresh, readFrom, searchToString, setAbortOnVersionConflict, setConflicts, setMaxRetries, setRefresh, setRequestsPerSecond, setRetryBackoffInitialTime, setShouldStoreResult, setSize, setSlices, setTimeout, setWaitForActiveShards, setWaitForActiveShards, writeTo
getParentTask, setParentTask
remoteAddress, remoteAddress
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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)
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)