Class DeleteByQueryRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<DeleteByQueryRequest>
- Enclosing class:
- DeleteByQueryRequest
public static class DeleteByQueryRequest.Builder extends java.lang.Object implements ObjectBuilder<DeleteByQueryRequest>
DeleteByQueryRequest.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description DeleteByQueryRequest.BuilderaddExpandWildcards(ExpandWildcardOptions value)Add a value toexpandWildcards(List), creating the list if needed.DeleteByQueryRequest.BuilderaddIndex(java.lang.String value)Add a value toindex(List), creating the list if needed.DeleteByQueryRequest.BuilderaddSort(java.lang.String value)Add a value tosort(List), creating the list if needed.DeleteByQueryRequest.BuilderaddSourceExcludes(java.lang.String value)Add a value tosourceExcludes(List), creating the list if needed.DeleteByQueryRequest.BuilderaddSourceIncludes(java.lang.String value)Add a value tosourceIncludes(List), creating the list if needed.DeleteByQueryRequest.BuilderaddStats(java.lang.String value)Add a value tostats(List), creating the list if needed.DeleteByQueryRequest.BuilderaddType(java.lang.String value)Add a value totype(List), creating the list if needed.DeleteByQueryRequest.BuilderallowNoIndices(java.lang.Boolean value)Whether to ignore if a wildcard indices expression resolves into no concrete indices.DeleteByQueryRequest.Builderanalyzer(java.lang.String value)The analyzer to use for the query stringDeleteByQueryRequest.BuilderanalyzeWildcard(java.lang.Boolean value)Specify whether wildcard and prefix queries should be analyzed (default: false)DeleteByQueryRequestbuild()Builds aDeleteByQueryRequest.DeleteByQueryRequest.Builderconflicts(Conflicts value)What to do when the delete by query hits version conflicts?DeleteByQueryRequest.BuilderdefaultOperator(DefaultOperator value)The default operator for query string query (AND or OR)DeleteByQueryRequest.Builderdf(java.lang.String value)The field to use as default where no field prefix is given in the query stringDeleteByQueryRequest.BuilderexpandWildcards(ExpandWildcardOptions... value)Whether to expand wildcard expression to concrete indices that are open, closed or both.DeleteByQueryRequest.BuilderexpandWildcards(java.util.List<ExpandWildcardOptions> value)Whether to expand wildcard expression to concrete indices that are open, closed or both.DeleteByQueryRequest.Builderfrom(java.lang.Long value)Starting offset (default: 0)DeleteByQueryRequest.BuilderignoreUnavailable(java.lang.Boolean value)Whether specified concrete indices should be ignored when unavailable (missing or closed)DeleteByQueryRequest.Builderindex(java.lang.String... value)Required - A comma-separated list of index names to search; use_allor empty string to perform the operation on all indicesDeleteByQueryRequest.Builderindex(java.util.List<java.lang.String> value)Required - A comma-separated list of index names to search; use_allor empty string to perform the operation on all indicesDeleteByQueryRequest.Builderlenient(java.lang.Boolean value)Specify whether format-based query failures (such as providing text to a numeric field) should be ignoredDeleteByQueryRequest.BuildermaxDocs(java.lang.Long value)API name:max_docsDeleteByQueryRequest.Builderpreference(java.lang.String value)Specify the node or shard the operation should be performed on (default: random)DeleteByQueryRequest.Builderq(java.lang.String value)Query in the Lucene query string syntaxDeleteByQueryRequest.Builderquery(Query value)API name:queryDeleteByQueryRequest.Builderquery(java.util.function.Function<Query.Builder,ObjectBuilder<Query>> fn)API name:queryDeleteByQueryRequest.Builderrefresh(java.lang.Boolean value)Should the effected indexes be refreshed?DeleteByQueryRequest.BuilderrequestCache(java.lang.Boolean value)Specify if request cache should be used for this request or not, defaults to index level settingDeleteByQueryRequest.BuilderrequestsPerSecond(java.lang.Long value)The throttle for this request in sub-requests per second.DeleteByQueryRequest.Builderrouting(java.lang.String value)A comma-separated list of specific routing valuesDeleteByQueryRequest.Builderscroll(java.lang.String value)Specify how long a consistent view of the index should be maintained for scrolled searchDeleteByQueryRequest.BuilderscrollSize(java.lang.Long value)Size on the scroll request powering the delete by queryDeleteByQueryRequest.BuildersearchTimeout(java.lang.String value)Explicit timeout for each search request.DeleteByQueryRequest.BuildersearchType(SearchType value)Search operation typeDeleteByQueryRequest.Buildersize(java.lang.Long value)Deprecated, please usemax_docsinsteadDeleteByQueryRequest.Builderslice(SlicedScroll value)API name:sliceDeleteByQueryRequest.Builderslice(java.util.function.Function<SlicedScroll.Builder,ObjectBuilder<SlicedScroll>> fn)API name:sliceDeleteByQueryRequest.Builderslices(java.lang.Long value)The number of slices this task should be divided into.DeleteByQueryRequest.Buildersort(java.lang.String... value)A comma-separated list of <field>:<direction> pairsDeleteByQueryRequest.Buildersort(java.util.List<java.lang.String> value)A comma-separated list of <field>:<direction> pairsDeleteByQueryRequest.Buildersource(jakarta.json.JsonValue value)True or false to return the _source field or not, or a list of fields to returnDeleteByQueryRequest.BuildersourceExcludes(java.lang.String... value)A list of fields to exclude from the returned _source fieldDeleteByQueryRequest.BuildersourceExcludes(java.util.List<java.lang.String> value)A list of fields to exclude from the returned _source fieldDeleteByQueryRequest.BuildersourceIncludes(java.lang.String... value)A list of fields to extract and return from the _source fieldDeleteByQueryRequest.BuildersourceIncludes(java.util.List<java.lang.String> value)A list of fields to extract and return from the _source fieldDeleteByQueryRequest.Builderstats(java.lang.String... value)Specific 'tag' of the request for logging and statistical purposesDeleteByQueryRequest.Builderstats(java.util.List<java.lang.String> value)Specific 'tag' of the request for logging and statistical purposesDeleteByQueryRequest.BuilderterminateAfter(java.lang.Long value)The maximum number of documents to collect for each shard, upon reaching which the query execution will terminate early.DeleteByQueryRequest.Buildertimeout(java.lang.String value)Time each individual bulk request should wait for shards that are unavailable.DeleteByQueryRequest.Buildertype(java.lang.String... value)A comma-separated list of document types to search; leave empty to perform the operation on all typesDeleteByQueryRequest.Buildertype(java.util.List<java.lang.String> value)A comma-separated list of document types to search; leave empty to perform the operation on all typesDeleteByQueryRequest.Builderversion(java.lang.Boolean value)Specify whether to return document version as part of a hitDeleteByQueryRequest.BuilderwaitForActiveShards(jakarta.json.JsonValue value)Sets the number of shard copies that must be active before proceeding with the delete by query operation.DeleteByQueryRequest.BuilderwaitForCompletion(java.lang.Boolean value)Should the request should block until the delete by query is complete.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
index
Required - A comma-separated list of index names to search; use_allor empty string to perform the operation on all indicesAPI name:
index -
index
Required - A comma-separated list of index names to search; use_allor empty string to perform the operation on all indicesAPI name:
index -
addIndex
Add a value toindex(List), creating the list if needed. -
type
A comma-separated list of document types to search; leave empty to perform the operation on all typesAPI name:
type -
type
A comma-separated list of document types to search; leave empty to perform the operation on all typesAPI name:
type -
addType
Add a value totype(List), creating the list if needed. -
allowNoIndices
Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes_allstring or when no indices have been specified)API name:
allow_no_indices -
analyzer
The analyzer to use for the query stringAPI name:
analyzer -
analyzeWildcard
Specify whether wildcard and prefix queries should be analyzed (default: false)API name:
analyze_wildcard -
conflicts
What to do when the delete by query hits version conflicts?API name:
conflicts -
defaultOperator
The default operator for query string query (AND or OR)API name:
default_operator -
df
The field to use as default where no field prefix is given in the query stringAPI name:
df -
expandWildcards
public DeleteByQueryRequest.Builder expandWildcards(@Nullable java.util.List<ExpandWildcardOptions> value)Whether to expand wildcard expression to concrete indices that are open, closed or both.API name:
expand_wildcards -
expandWildcards
Whether to expand wildcard expression to concrete indices that are open, closed or both.API name:
expand_wildcards -
addExpandWildcards
Add a value toexpandWildcards(List), creating the list if needed. -
from
Starting offset (default: 0)API name:
from -
lenient
Specify whether format-based query failures (such as providing text to a numeric field) should be ignoredAPI name:
lenient -
preference
Specify the node or shard the operation should be performed on (default: random)API name:
preference -
refresh
Should the effected indexes be refreshed?API name:
refresh -
requestCache
Specify if request cache should be used for this request or not, defaults to index level settingAPI name:
request_cache -
requestsPerSecond
The throttle for this request in sub-requests per second. -1 means no throttle.API name:
requests_per_second -
routing
A comma-separated list of specific routing valuesAPI name:
routing -
q
Query in the Lucene query string syntaxAPI name:
q -
scroll
Specify how long a consistent view of the index should be maintained for scrolled searchAPI name:
scroll -
scrollSize
Size on the scroll request powering the delete by queryAPI name:
scroll_size -
searchTimeout
Explicit timeout for each search request. Defaults to no timeout.API name:
search_timeout -
searchType
Search operation typeAPI name:
search_type -
size
Deprecated, please usemax_docsinsteadAPI name:
size -
slices
The number of slices this task should be divided into. Defaults to 1, meaning the task isn't sliced into subtasks. Can be set toauto.API name:
slices -
sort
A comma-separated list of <field>:<direction> pairsAPI name:
sort -
sort
A comma-separated list of <field>:<direction> pairsAPI name:
sort -
addSort
Add a value tosort(List), creating the list if needed. -
source
True or false to return the _source field or not, or a list of fields to returnAPI name:
_source -
sourceExcludes
public DeleteByQueryRequest.Builder sourceExcludes(@Nullable java.util.List<java.lang.String> value)A list of fields to exclude from the returned _source fieldAPI name:
_source_excludes -
sourceExcludes
A list of fields to exclude from the returned _source fieldAPI name:
_source_excludes -
addSourceExcludes
Add a value tosourceExcludes(List), creating the list if needed. -
sourceIncludes
public DeleteByQueryRequest.Builder sourceIncludes(@Nullable java.util.List<java.lang.String> value)A list of fields to extract and return from the _source fieldAPI name:
_source_includes -
sourceIncludes
A list of fields to extract and return from the _source fieldAPI name:
_source_includes -
addSourceIncludes
Add a value tosourceIncludes(List), creating the list if needed. -
stats
Specific 'tag' of the request for logging and statistical purposesAPI name:
stats -
stats
Specific 'tag' of the request for logging and statistical purposesAPI name:
stats -
addStats
Add a value tostats(List), creating the list if needed. -
terminateAfter
The maximum number of documents to collect for each shard, upon reaching which the query execution will terminate early.API name:
terminate_after -
timeout
Time each individual bulk request should wait for shards that are unavailable.API name:
timeout -
version
Specify whether to return document version as part of a hitAPI name:
version -
waitForActiveShards
Sets the number of shard copies that must be active before proceeding with the delete by query operation. Defaults to 1, meaning the primary shard only. Set toallfor all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)API name:
wait_for_active_shards -
waitForCompletion
Should the request should block until the delete by query is complete.API name:
wait_for_completion -
maxDocs
API name:max_docs -
query
API name:query -
query
public DeleteByQueryRequest.Builder query(java.util.function.Function<Query.Builder,ObjectBuilder<Query>> fn)API name:query -
slice
API name:slice -
slice
public DeleteByQueryRequest.Builder slice(java.util.function.Function<SlicedScroll.Builder,ObjectBuilder<SlicedScroll>> fn)API name:slice -
build
Builds aDeleteByQueryRequest.- Specified by:
buildin interfaceObjectBuilder<DeleteByQueryRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-