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,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.
-
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_OPTIONSFields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionExplainRequest(String index, String id)ExplainRequest(String index, String type, String id)Deprecated.Types are in the process of being removed. -
Method Summary
Modifier and TypeMethodDescriptionfetchSourceContext(FetchSourceContext context)Allows setting theFetchSourceContextfor this request, controlling if and how _source should be returned.filteringAlias(AliasFilter filteringAlias)id()Simple sets the routing.preference(String preference)query()query(QueryBuilder query)routing()String[]storedFields(String[] fields)org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)type()Deprecated.Types are in the process of being removed.Deprecated.Types are in the process of being removed.validate()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.action.ActionRequest
getShouldStoreResultMethods inherited from class org.elasticsearch.transport.TransportRequest
getParentTask, setParentTask, toStringMethods inherited from class org.elasticsearch.transport.TransportMessage
decRef, incRef, remoteAddress, remoteAddress, tryIncRefMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.action.IndicesRequest
allowsRemoteIndices, includeDataStreamsMethods inherited from interface org.elasticsearch.tasks.TaskAwareRequest
createTask, getDescription, setParentTaskMethods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
Constructor Details
-
ExplainRequest
public ExplainRequest() -
ExplainRequest
Deprecated.Types are in the process of being removed. Useinstead. -
ExplainRequest
-
-
Method Details
-
type
Deprecated.Types are in the process of being removed. -
type
Deprecated.Types are in the process of being removed. -
id
-
id
-
routing
-
routing
-
parent
Simple sets the routing. Since the parent is only used to get to the right shard. -
preference
-
preference
-
query
-
query
-
fetchSourceContext
Allows setting theFetchSourceContextfor this request, controlling if and how _source should be returned. -
fetchSourceContext
-
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:
IOException
-
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException- Specified by:
toXContentin interfaceorg.elasticsearch.common.xcontent.ToXContent- Throws:
IOException
-