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
,RefCounted
,TaskAwareRequest
,ToXContent
,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.Empty
Nested classes/interfaces inherited from interface org.elasticsearch.action.IndicesRequest
IndicesRequest.Replaceable
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Nested 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
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
ConstructorDescriptionExplainRequest
(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 theFetchSourceContext
for 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) toXContent
(XContentBuilder builder, ToXContent.Params params) type()
Deprecated.Types are in the process of being removed.Deprecated.Types are in the process of being removed.validate()
void
writeTo
(StreamOutput out) Write this into the StreamOutput.Methods inherited from class org.elasticsearch.action.support.single.shard.SingleShardRequest
index, index, indices, indicesOptions, validateNonNullIndex
Methods inherited from class org.elasticsearch.action.ActionRequest
getShouldStoreResult
Methods inherited from class org.elasticsearch.transport.TransportRequest
getParentTask, setParentTask, toString
Methods inherited from class org.elasticsearch.transport.TransportMessage
decRef, hasReferences, incRef, remoteAddress, remoteAddress, tryIncRef
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.elasticsearch.action.IndicesRequest
includeDataStreams
Methods inherited from interface org.elasticsearch.tasks.TaskAwareRequest
createTask, getDescription, setParentTask
Methods inherited from interface org.elasticsearch.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 theFetchSourceContext
for this request, controlling if and how _source should be returned. -
fetchSourceContext
-
storedFields
-
storedFields
-
filteringAlias
-
filteringAlias
-
validate
- Specified by:
validate
in classActionRequest
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Overrides:
writeTo
in classSingleShardRequest<ExplainRequest>
- Throws:
IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContent
in interfaceToXContent
- Throws:
IOException
-