Class ValidateQueryRequest

All Implemented Interfaces:
IndicesRequest, IndicesRequest.Replaceable, Writeable, RefCounted, TaskAwareRequest, ToXContent, ToXContentObject

public class ValidateQueryRequest extends BroadcastRequest<ValidateQueryRequest> implements ToXContentObject
A request to validate a specific query.

The request requires the query to be set using query(QueryBuilder)

  • Field Details

    • DEFAULT_INDICES_OPTIONS

      public static final IndicesOptions DEFAULT_INDICES_OPTIONS
  • Constructor Details

    • ValidateQueryRequest

      public ValidateQueryRequest()
    • ValidateQueryRequest

      public ValidateQueryRequest(StreamInput in) throws IOException
      Throws:
      IOException
    • ValidateQueryRequest

      public ValidateQueryRequest(String... indices)
      Constructs a new validate request against the provided indices. No indices provided means it will run against all indices.
  • Method Details