Class ValidateQueryRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.indices.ValidateQueryRequest
- All Implemented Interfaces:
ElasticsearchCommonRequest,JsonpSerializable
@JsonpDeserializable public final class ValidateQueryRequest extends RequestBase implements JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classValidateQueryRequest.BuilderBuilder forValidateQueryRequest.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<ValidateQueryRequest>_DESERIALIZERJson deserializer forValidateQueryRequeststatic Endpoint<ValidateQueryRequest,ValidateQueryResponse,ElasticsearchError>ENDPOINTEndpoint "indices.validate_query". -
Constructor Summary
Constructors Constructor Description ValidateQueryRequest(ValidateQueryRequest.Builder builder)ValidateQueryRequest(java.util.function.Function<ValidateQueryRequest.Builder,ValidateQueryRequest.Builder> fn) -
Method Summary
Modifier and Type Method Description java.lang.BooleanallowNoIndices()Whether to ignore if a wildcard indices expression resolves into no concrete indices.java.lang.BooleanallShards()Execute validation on all shards instead of one random shard per indexjava.lang.Stringanalyzer()The analyzer to use for the query stringjava.lang.BooleananalyzeWildcard()Specify whether wildcard and prefix queries should be analyzed (default: false)DefaultOperatordefaultOperator()The default operator for query string query (AND or OR)java.lang.Stringdf()The field to use as default where no field prefix is given in the query stringjava.util.List<ExpandWildcardOptions>expandWildcards()Whether to expand wildcard expression to concrete indices that are open, closed or both.java.lang.Booleanexplain()Return detailed information about the errorjava.lang.BooleanignoreUnavailable()Whether specified concrete indices should be ignored when unavailable (missing or closed)java.util.List<java.lang.String>index()A comma-separated list of index names to restrict the operation; use_allor empty string to perform the operation on all indicesjava.lang.Booleanlenient()Specify whether format-based query failures (such as providing text to a numeric field) should be ignoredjava.lang.Stringq()Query in the Lucene query string syntaxQueryquery()API name:queryjava.lang.Booleanrewrite()Provide a more detailed explanation showing the actual Lucene query that will be executed.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupValidateQueryRequestDeserializer(DelegatingDeserializer<ValidateQueryRequest.Builder> op)java.util.List<java.lang.String>type()A comma-separated list of document types to restrict the operation; leave empty to perform the operation on all typesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forValidateQueryRequest -
ENDPOINT
public static final Endpoint<ValidateQueryRequest,ValidateQueryResponse,ElasticsearchError> ENDPOINTEndpoint "indices.validate_query".
-
-
Constructor Details
-
ValidateQueryRequest
-
ValidateQueryRequest
public ValidateQueryRequest(java.util.function.Function<ValidateQueryRequest.Builder,ValidateQueryRequest.Builder> fn)
-
-
Method Details
-
index
@Nullable public java.util.List<java.lang.String> index()A comma-separated list of index names to restrict the operation; use_allor empty string to perform the operation on all indicesAPI name:
index -
type
@Nullable public java.util.List<java.lang.String> type()A comma-separated list of document types to restrict the operation; leave empty to perform the operation on all typesAPI name:
type -
allowNoIndices
@Nullable public java.lang.Boolean 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 -
allShards
@Nullable public java.lang.Boolean allShards()Execute validation on all shards instead of one random shard per indexAPI name:
all_shards -
analyzer
@Nullable public java.lang.String analyzer()The analyzer to use for the query stringAPI name:
analyzer -
analyzeWildcard
@Nullable public java.lang.Boolean analyzeWildcard()Specify whether wildcard and prefix queries should be analyzed (default: false)API name:
analyze_wildcard -
defaultOperator
The default operator for query string query (AND or OR)API name:
default_operator -
df
@Nullable public java.lang.String df()The field to use as default where no field prefix is given in the query stringAPI name:
df -
expandWildcards
Whether to expand wildcard expression to concrete indices that are open, closed or both.API name:
expand_wildcards -
explain
@Nullable public java.lang.Boolean explain()Return detailed information about the errorAPI name:
explain -
lenient
@Nullable public java.lang.Boolean lenient()Specify whether format-based query failures (such as providing text to a numeric field) should be ignoredAPI name:
lenient -
rewrite
@Nullable public java.lang.Boolean rewrite()Provide a more detailed explanation showing the actual Lucene query that will be executed.API name:
rewrite -
q
@Nullable public java.lang.String q()Query in the Lucene query string syntaxAPI name:
q -
query
API name:query -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupValidateQueryRequestDeserializer
protected static void setupValidateQueryRequestDeserializer(DelegatingDeserializer<ValidateQueryRequest.Builder> op)
-