Class ValidateQueryResponse

All Implemented Interfaces:
Writeable, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentObject, org.elasticsearch.core.RefCounted

public class ValidateQueryResponse extends BroadcastResponse
The response of the validate action.
  • Field Details

  • Method Details

    • isValid

      public boolean isValid()
      A boolean denoting whether the query is valid.
    • getQueryExplanation

      public <? extends QueryExplanation> getQueryExplanation()
      The list of query explanations.
    • writeTo

      public void writeTo(StreamOutput out) throws
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Overrides:
      writeTo in class BroadcastResponse
      Throws:
    • addCustomXContentFields

      protected void addCustomXContentFields(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws
      Description copied from class: BroadcastResponse
      Override in subclass to add custom fields following the common `_shards` field
      Overrides:
      addCustomXContentFields in class BroadcastResponse
      Throws:
    • fromXContent

      public static ValidateQueryResponse fromXContent(org.elasticsearch.common.xcontent.XContentParser parser)