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:
  • Field Details

  • Method Details

    • of

    • allShards

      @Nullable public final Boolean allShards()
      Execute validation on all shards instead of one random shard per index

      API name: all_shards

    • allowNoIndices

      @Nullable public final 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 Boolean analyzeWildcard()
      Specify whether wildcard and prefix queries should be analyzed (default: false)

      API name: analyze_wildcard

    • analyzer

      @Nullable public final String analyzer()
      The analyzer to use for the query string

      API name: analyzer

    • defaultOperator

      @Nullable public final Operator defaultOperator()
      The default operator for query string query (AND or OR)

      API name: default_operator

    • df

      @Nullable public final String df()
      The field to use as default where no field prefix is given in the query string

      API name: df

    • expandWildcards

      public final List<ExpandWildcard> expandWildcards()
      Whether to expand wildcard expression to concrete indices that are open, closed or both.

      API name: expand_wildcards

    • explain

      @Nullable public final Boolean explain()
      Return detailed information about the error

      API name: explain

    • ignoreUnavailable

      @Nullable public final Boolean ignoreUnavailable()
      Whether specified concrete indices should be ignored when unavailable (missing or closed)

      API name: ignore_unavailable

    • index

      public final List<String> index()
      A comma-separated list of index names to restrict the operation; use _all or empty string to perform the operation on all indices

      API name: index

    • lenient

      @Nullable public final Boolean lenient()
      Specify whether format-based query failures (such as providing text to a numeric field) should be ignored

      API name: lenient

    • q

      @Nullable public final String q()
      Query in the Lucene query string syntax

      API name: q

    • query

      @Nullable public final Query query()
      API name: query
    • rewrite

      @Nullable public final Boolean rewrite()
      Provide a more detailed explanation showing the actual Lucene query that will be executed.

      API name: rewrite

    • serialize

      public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • setupValidateQueryRequestDeserializer

      protected static void setupValidateQueryRequestDeserializer(ObjectDeserializer<ValidateQueryRequest.Builder> op)