Class ValidateQueryRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.indices.ValidateQueryRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class ValidateQueryRequest
extends RequestBase
implements JsonpSerializable
Allows a user to validate a potentially expensive query without executing it.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<ValidateQueryRequest>Json deserializer forValidateQueryRequeststatic final Endpoint<ValidateQueryRequest,ValidateQueryResponse, ErrorResponse> Endpoint "indices.validate_query". -
Method Summary
Modifier and TypeMethodDescriptionfinal BooleanWhether to ignore if a wildcard indices expression resolves into no concrete indices.final BooleanExecute validation on all shards instead of one random shard per indexfinal Stringanalyzer()The analyzer to use for the query stringfinal BooleanSpecify whether wildcard and prefix queries should be analyzed (default: false)final OperatorThe default operator for query string query (AND or OR)final Stringdf()The field to use as default where no field prefix is given in the query stringfinal List<ExpandWildcard>Whether to expand wildcard expression to concrete indices that are open, closed or both.final Booleanexplain()Return detailed information about the errorfinal BooleanWhether specified concrete indices should be ignored when unavailable (missing or closed)index()A comma-separated list of index names to restrict the operation; use_allor empty string to perform the operation on all indicesfinal Booleanlenient()Specify whether format-based query failures (such as providing text to a numeric field) should be ignoredstatic ValidateQueryRequestfinal Stringq()Query in the Lucene query string syntaxfinal Queryquery()API name:queryfinal 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 voidtype()A comma-separated list of document types to restrict the operation; leave empty to perform the operation on all typesMethods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forValidateQueryRequest -
_ENDPOINT
Endpoint "indices.validate_query".
-
-
Method Details
-
of
public static ValidateQueryRequest of(Function<ValidateQueryRequest.Builder, ObjectBuilder<ValidateQueryRequest>> fn) -
allShards
Execute validation on all shards instead of one random shard per indexAPI name:
all_shards -
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 -
analyzeWildcard
Specify whether wildcard and prefix queries should be analyzed (default: false)API name:
analyze_wildcard -
analyzer
The analyzer to use for the query stringAPI name:
analyzer -
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
Whether to expand wildcard expression to concrete indices that are open, closed or both.API name:
expand_wildcards -
explain
Return detailed information about the errorAPI name:
explain -
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 -
lenient
Specify whether format-based query failures (such as providing text to a numeric field) should be ignoredAPI name:
lenient -
q
Query in the Lucene query string syntaxAPI name:
q -
query
API name:query -
rewrite
Provide a more detailed explanation showing the actual Lucene query that will be executed.API name:
rewrite -
type
A comma-separated list of document types to restrict the operation; leave empty to perform the operation on all typesAPI name:
type -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupValidateQueryRequestDeserializer
protected static void setupValidateQueryRequestDeserializer(ObjectDeserializer<ValidateQueryRequest.Builder> op)
-