Class ValidateQueryRequest.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.RequestBase.AbstractBuilder<ValidateQueryRequest.Builder>
org.opensearch.client.opensearch.indices.ValidateQueryRequest.Builder
- All Implemented Interfaces:
CopyableBuilder<ValidateQueryRequest.Builder,,ValidateQueryRequest> MutableBuilder<ValidateQueryRequest.Builder,,ValidateQueryRequest> ObjectBuilder<ValidateQueryRequest>
- Enclosing class:
ValidateQueryRequest
public static class ValidateQueryRequest.Builder
extends RequestBase.AbstractBuilder<ValidateQueryRequest.Builder>
implements CopyableBuilder<ValidateQueryRequest.Builder,ValidateQueryRequest>
Builder for
ValidateQueryRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowNoIndices(Boolean value) Iffalse, the request returns an error if any wildcard expression, index alias, or_allvalue targets only missing or closed indexes.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.copy()Create a new builderCopyableBuilderthat is a copy of this one.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(List<ExpandWildcard> list) Type of index that wildcard patterns can match.expandWildcards(ExpandWildcard value, ExpandWildcard... values) 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 missing or closed index.A comma-separated list of data streams, indexes, and aliases to search.A comma-separated list of data streams, indexes, 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.API name:queryAPI name:queryIftrue, returns a more detailed explanation showing the actual Lucene query that will be executed.protected ValidateQueryRequest.Builderself()Methods inherited from class org.opensearch.client.opensearch._types.RequestBase.AbstractBuilder
errorTrace, humanMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<ValidateQueryRequest.Builder,ValidateQueryRequest> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classRequestBase.AbstractBuilder<ValidateQueryRequest.Builder>
-
allShards
Iftrue, the validation is executed on all shards instead of one random shard per index.API name:
all_shards -
allowNoIndices
Iffalse, the request returns an error if any wildcard expression, index alias, or_allvalue targets only missing or closed indexes. This behavior applies even if the request targets other open indexes.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. Valid values are:all,open,closed,hidden,none.API name:
expand_wildcardsAdds all elements of
listtoexpandWildcards. -
expandWildcards
@Nonnull 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. Valid values are:all,open,closed,hidden,none.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
A comma-separated list of data streams, indexes, and aliases to search. Supports wildcards (*). To search all data streams or indexes, omit this parameter or use*or_all.API name:
indexAdds all elements of
listtoindex. -
index
A comma-separated list of data streams, indexes, and aliases to search. Supports wildcards (*). To search all data streams or indexes, 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
API name:query -
query
@Nonnull public final ValidateQueryRequest.Builder query(Function<Query.Builder, ObjectBuilder<Query>> fn) API name:query -
rewrite
Iftrue, returns a more detailed explanation showing the actual Lucene query that will be executed.API name:
rewrite -
build
Builds aValidateQueryRequest.- Specified by:
buildin interfaceObjectBuilder<ValidateQueryRequest>- Throws:
NullPointerException- if some of the required fields are null.
-