Class ValidateQueryRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<ValidateQueryRequest.Builder>
co.elastic.clients.elasticsearch.indices.ValidateQueryRequest.Builder
- All Implemented Interfaces:
WithJson<ValidateQueryRequest.Builder>,ObjectBuilder<ValidateQueryRequest>
- Enclosing class:
- ValidateQueryRequest
public static class ValidateQueryRequest.Builder
extends RequestBase.AbstractBuilder<ValidateQueryRequest.Builder>
implements ObjectBuilder<ValidateQueryRequest>
Builder for
ValidateQueryRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowNoIndices(Boolean value) A setting that does two separate checks on the index expression.Iftrue, the validation is executed on all shards instead of one random shard per index.Analyzer to use for the query string.analyzeWildcard(Boolean value) Iftrue, wildcard and prefix queries are analyzed.build()Builds aValidateQueryRequest.defaultOperator(Operator value) The default operator for query string query:andoror.Field to use as default where no field prefix is given in the query string.expandWildcards(ExpandWildcard value, ExpandWildcard... values) Type of index that wildcard patterns can match.expandWildcards(List<ExpandWildcard> list) Type of index that wildcard patterns can match.Iftrue, the response returns detailed information if an error has occurred.ignoreUnavailable(Boolean value) Iffalse, the request returns an error if it targets a concrete (non-wildcarded) index, alias, or data stream that is missing, closed, or otherwise unavailable.Comma-separated list of data streams, indices, and aliases to search.Comma-separated list of data streams, indices, and aliases to search.Iftrue, format-based query failures (such as providing text to a numeric field) in the query string will be ignored.Query in the Lucene query string syntax.Query in the Lucene query string syntax.query(QueryVariant value) Query in the Lucene query string syntax.Query in the Lucene query string syntax.Iftrue, returns a more detailed explanation showing the actual Lucene query that will be executed.routeSlice(String value) The slice identifier used to route the operation to a specific slice.A custom value used to route operations to a specific shard.A custom value used to route operations to a specific shard.protected ValidateQueryRequest.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allShards
Iftrue, the validation is executed on all shards instead of one random shard per index.API name:
all_shards -
allowNoIndices
A setting that does two separate checks on the index expression. Iffalse, the request returns an error (1) if any wildcard expression (including_alland*) resolves to zero matching indices or (2) if the complete set of resolved indices, aliases or data streams is empty after all expressions are evaluated. Iftrue, index expressions that resolve to no indices are allowed and the request returns an empty result.API name:
allow_no_indices -
analyzeWildcard
Iftrue, wildcard and prefix queries are analyzed.API name:
analyze_wildcard -
analyzer
Analyzer to use for the query string. This parameter can only be used when theqquery string parameter is specified.API name:
analyzer -
defaultOperator
The default operator for query string query:andoror.API name:
default_operator -
df
Field to use as default where no field prefix is given in the query string. This parameter can only be used when theqquery string parameter is specified.API name:
df -
expandWildcards
Type of index that wildcard patterns can match. If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. Supports comma-separated values, such asopen,hidden.API name:
expand_wildcardsAdds all elements of
listtoexpandWildcards. -
expandWildcards
public final ValidateQueryRequest.Builder expandWildcards(ExpandWildcard value, ExpandWildcard... values) Type of index that wildcard patterns can match. If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. Supports comma-separated values, such asopen,hidden.API name:
expand_wildcardsAdds one or more values to
expandWildcards. -
explain
Iftrue, the response returns detailed information if an error has occurred.API name:
explain -
index
Comma-separated list of data streams, indices, and aliases to search. Supports wildcards (*). To search all data streams or indices, omit this parameter or use*or_all.API name:
indexAdds all elements of
listtoindex. -
index
Comma-separated list of data streams, indices, and aliases to search. Supports wildcards (*). To search all data streams or indices, omit this parameter or use*or_all.API name:
indexAdds one or more values to
index. -
lenient
Iftrue, format-based query failures (such as providing text to a numeric field) in the query string will be ignored.API name:
lenient -
q
Query in the Lucene query string syntax.API name:
q -
query
Query in the Lucene query string syntax.API name:
query -
query
Query in the Lucene query string syntax.API name:
query -
query
Query in the Lucene query string syntax.API name:
query -
rewrite
Iftrue, returns a more detailed explanation showing the actual Lucene query that will be executed.API name:
rewrite -
routeSlice
The slice identifier used to route the operation to a specific slice. Use the special value_allto target all slices without restricting to a routing value. Required whenindex.slice.enabledistruefor the target index; not allowed whenindex.slice.enabledisfalse.API name:
_slice -
routing
A custom value used to route operations to a specific shard. Not allowed whenindex.slice.enabledistruefor the target index; use_sliceinstead.API name:
routingAdds all elements of
listtorouting. -
routing
A custom value used to route operations to a specific shard. Not allowed whenindex.slice.enabledistruefor the target index; use_sliceinstead.API name:
routingAdds one or more values to
routing. -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<ValidateQueryRequest.Builder>
-
build
Builds aValidateQueryRequest.- Specified by:
buildin interfaceObjectBuilder<ValidateQueryRequest>- Throws:
NullPointerException- if some of the required fields are null.
-