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:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ValidateQueryRequest.Builder
Builder 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>
_DESERIALIZER
Json deserializer forValidateQueryRequest
static Endpoint<ValidateQueryRequest,ValidateQueryResponse,ErrorResponse>
_ENDPOINT
Endpoint "indices.validate_query
". -
Method Summary
Modifier and Type Method Description java.lang.Boolean
allowNoIndices()
Whether to ignore if a wildcard indices expression resolves into no concrete indices.java.lang.Boolean
allShards()
Execute validation on all shards instead of one random shard per indexjava.lang.String
analyzer()
The analyzer to use for the query stringjava.lang.Boolean
analyzeWildcard()
Specify whether wildcard and prefix queries should be analyzed (default: false)Operator
defaultOperator()
The default operator for query string query (AND or OR)java.lang.String
df()
The field to use as default where no field prefix is given in the query stringjava.util.List<ExpandWildcard>
expandWildcards()
Whether to expand wildcard expression to concrete indices that are open, closed or both.java.lang.Boolean
explain()
Return detailed information about the errorjava.lang.Boolean
ignoreUnavailable()
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_all
or empty string to perform the operation on all indicesjava.lang.Boolean
lenient()
Specify whether format-based query failures (such as providing text to a numeric field) should be ignoredstatic ValidateQueryRequest
of(java.util.function.Function<ValidateQueryRequest.Builder,ObjectBuilder<ValidateQueryRequest>> fn)
java.lang.String
q()
Query in the Lucene query string syntaxQuery
query()
API name:query
java.lang.Boolean
rewrite()
Provide a more detailed explanation showing the actual Lucene query that will be executed.void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupValidateQueryRequestDeserializer(ObjectDeserializer<ValidateQueryRequest.Builder> op)
Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forValidateQueryRequest
-
_ENDPOINT
Endpoint "indices.validate_query
".
-
-
Method Details
-
of
public static ValidateQueryRequest of(java.util.function.Function<ValidateQueryRequest.Builder,ObjectBuilder<ValidateQueryRequest>> fn) -
allShards
@Nullable public final java.lang.Boolean allShards()Execute validation on all shards instead of one random shard per indexAPI name:
all_shards
-
allowNoIndices
@Nullable public final java.lang.Boolean allowNoIndices()Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes_all
string or when no indices have been specified)API name:
allow_no_indices
-
analyzeWildcard
@Nullable public final java.lang.Boolean analyzeWildcard()Specify whether wildcard and prefix queries should be analyzed (default: false)API name:
analyze_wildcard
-
analyzer
@Nullable public final java.lang.String 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
@Nullable public final 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 final java.lang.Boolean explain()Return detailed information about the errorAPI name:
explain
-
index
public final java.util.List<java.lang.String> index()A comma-separated list of index names to restrict the operation; use_all
or empty string to perform the operation on all indicesAPI name:
index
-
lenient
@Nullable public final java.lang.Boolean lenient()Specify whether format-based query failures (such as providing text to a numeric field) should be ignoredAPI name:
lenient
-
q
@Nullable public final java.lang.String q()Query in the Lucene query string syntaxAPI name:
q
-
query
API name:query
-
rewrite
@Nullable public final java.lang.Boolean rewrite()Provide a more detailed explanation showing the actual Lucene query that will be executed.API name:
rewrite
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupValidateQueryRequestDeserializer
protected static void setupValidateQueryRequestDeserializer(ObjectDeserializer<ValidateQueryRequest.Builder> op)
-