Package org.elasticsearch.action.explain
Class ExplainRequest
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportRequest
org.elasticsearch.action.ActionRequest
org.elasticsearch.action.support.single.shard.SingleShardRequest<ExplainRequest>
org.elasticsearch.action.explain.ExplainRequest
- All Implemented Interfaces:
IndicesRequest,Writeable,org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentObject,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.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.transport.TransportRequest
TransportRequest.EmptyNested classes/interfaces inherited from interface org.elasticsearch.action.IndicesRequest
IndicesRequest.ReplaceableNested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields inherited from class org.elasticsearch.action.support.single.shard.SingleShardRequest
index, INDICES_OPTIONS -
Constructor Summary
Constructors Constructor Description ExplainRequest()ExplainRequest(java.lang.String index, java.lang.String id)ExplainRequest(java.lang.String index, java.lang.String type, java.lang.String id)Deprecated.Types are in the process of being removed. -
Method Summary
Modifier and Type Method Description FetchSourceContextfetchSourceContext()ExplainRequestfetchSourceContext(FetchSourceContext context)Allows setting theFetchSourceContextfor this request, controlling if and how _source should be returned.AliasFilterfilteringAlias()ExplainRequestfilteringAlias(AliasFilter filteringAlias)java.lang.Stringid()ExplainRequestid(java.lang.String id)ExplainRequestparent(java.lang.String parent)Simple sets the routing.java.lang.Stringpreference()ExplainRequestpreference(java.lang.String preference)QueryBuilderquery()ExplainRequestquery(QueryBuilder query)java.lang.Stringrouting()ExplainRequestrouting(java.lang.String routing)java.lang.String[]storedFields()ExplainRequeststoredFields(java.lang.String[] fields)org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)java.lang.Stringtype()Deprecated.Types are in the process of being removed.ExplainRequesttype(java.lang.String type)Deprecated.Types are in the process of being removed.ActionRequestValidationExceptionvalidate()voidwriteTo(StreamOutput out)Write this into the StreamOutput.Methods inherited from class org.elasticsearch.action.support.single.shard.SingleShardRequest
index, index, indices, indicesOptions, validateNonNullIndexMethods inherited from class org.elasticsearch.transport.TransportRequest
getParentTask, setParentTaskMethods inherited from class org.elasticsearch.transport.TransportMessage
remoteAddress, remoteAddressMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.tasks.TaskAwareRequest
createTask, getDescription, setParentTask
-
Constructor Details
-
ExplainRequest
public ExplainRequest() -
ExplainRequest
@Deprecated public ExplainRequest(java.lang.String index, java.lang.String type, java.lang.String id)Deprecated.Types are in the process of being removed. Useinstead. -
ExplainRequest
public ExplainRequest(java.lang.String index, java.lang.String id)
-
-
Method Details
-
type
@Deprecated public java.lang.String type()Deprecated.Types are in the process of being removed. -
type
Deprecated.Types are in the process of being removed. -
id
public java.lang.String id() -
id
-
routing
public java.lang.String routing() -
routing
-
parent
Simple sets the routing. Since the parent is only used to get to the right shard. -
preference
public java.lang.String preference() -
preference
-
query
-
query
-
fetchSourceContext
Allows setting theFetchSourceContextfor this request, controlling if and how _source should be returned. -
fetchSourceContext
-
storedFields
public java.lang.String[] storedFields() -
storedFields
-
filteringAlias
-
filteringAlias
-
validate
- Specified by:
validatein classActionRequest
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classSingleShardRequest<ExplainRequest>- Throws:
java.io.IOException
-
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException- Specified by:
toXContentin interfaceorg.elasticsearch.common.xcontent.ToXContent- Throws:
java.io.IOException
-