Class ExplainRequest

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

public class ExplainRequest extends SingleShardRequest<ExplainRequest> implements org.elasticsearch.common.xcontent.ToXContentObject
Explain request encapsulating the explain query and document identifier to get an explanation for.
  • Constructor Details

    • ExplainRequest

      public ExplainRequest()
    • ExplainRequest

      public ExplainRequest( index,  type,  id)
      Deprecated.
      Types are in the process of being removed. Use instead.
    • ExplainRequest

      public ExplainRequest( index,  id)
  • Method Details

    • type

      public  type()
      Deprecated.
      Types are in the process of being removed.
    • type

      public  type)
      Deprecated.
      Types are in the process of being removed.
    • id

      public  id()
    • id

      public  id)
    • routing

      public  routing()
    • routing

      public  routing)
    • parent

      public  parent)
      Simple sets the routing. Since the parent is only used to get to the right shard.
    • preference

      public  preference()
    • preference

      public  preference)
    • query

      public QueryBuilder query()
    • query

      public ExplainRequest query(QueryBuilder query)
    • fetchSourceContext

      public ExplainRequest fetchSourceContext(FetchSourceContext context)
      Allows setting the FetchSourceContext for this request, controlling if and how _source should be returned.
    • fetchSourceContext

      public FetchSourceContext fetchSourceContext()
    • storedFields

      public [] storedFields()
    • storedFields

      public [] fields)
    • filteringAlias

      public AliasFilter filteringAlias()
    • filteringAlias

      public ExplainRequest filteringAlias(AliasFilter filteringAlias)
    • validate

      Specified by:
      validate in class ActionRequest
    • 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 SingleShardRequest<ExplainRequest>
      Throws:
    • toXContent

      public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws
      Specified by:
      toXContent in interface org.elasticsearch.common.xcontent.ToXContent
      Throws: