Class ValidateQueryResponse

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

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 java.util.List<? extends QueryExplanation> getQueryExplanation()
      The list of query explanations.
    • writeTo

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

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

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