IndicesRequest, IndicesRequest.Replaceable, Streamable, Writeable, TaskAwareRequestpublic 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.ReplaceableTransportRequest.EmptyWriteable.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, writeToclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitnewWriteableReadersetParentTaskremoteAddress, remoteAddressgetParentTask, setParentTaskpublic DeleteByQueryRequest()
public DeleteByQueryRequest(SearchRequest search)
protected DeleteByQueryRequest self()
AbstractBulkByScrollRequestself in class AbstractBulkByScrollRequest<DeleteByQueryRequest>public ActionRequestValidationException validate()
validate in class AbstractBulkByScrollRequest<DeleteByQueryRequest>public DeleteByQueryRequest forSlice(TaskId slicingTask, SearchRequest slice, int totalSlices)
AbstractBulkByScrollRequestforSlice in class AbstractBulkByScrollRequest<DeleteByQueryRequest>public java.lang.String toString()
toString in class java.lang.Objectpublic IndicesRequest indices(java.lang.String... indices)
IndicesRequest.Replaceableindices in interface IndicesRequest.Replaceablepublic java.lang.String[] indices()
IndicesRequestindices in interface IndicesRequestpublic IndicesOptions indicesOptions()
IndicesRequestindicesOptions in interface IndicesRequestpublic java.lang.String[] types()
public DeleteByQueryRequest types(java.lang.String... types)