Module org.elasticsearch.server
Class InnerHitsContext.InnerHitSubContext
java.lang.Object
org.elasticsearch.search.internal.SearchContext
org.elasticsearch.search.internal.FilteredSearchContext
org.elasticsearch.search.internal.SubSearchContext
org.elasticsearch.search.fetch.subphase.InnerHitsContext.InnerHitSubContext
- All Implemented Interfaces:
Closeable,AutoCloseable,Releasable
- Enclosing class:
InnerHitsContext
-
Field Summary
FieldsFields inherited from class org.elasticsearch.search.internal.SearchContext
DEFAULT_TERMINATE_AFTER, DEFAULT_TRACK_TOTAL_HITS_UP_TO, releasables, TRACK_TOTAL_HITS_ACCURATE, TRACK_TOTAL_HITS_DISABLED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.lucene.search.WeightgetName()Return a handle over the profilers for the current search request, ornullif profiling is not enabled.The _id of the root document.A source lookup for the root document.voidsetChildInnerHits(Map<String, InnerHitsContext.InnerHitSubContext> childInnerHits) voidvoidsetRootLookup(Source rootSource) abstract TopDocsAndMaxScoreMethods inherited from class org.elasticsearch.search.internal.SubSearchContext
aggregations, buildFilteredQuery, collapse, docValuesContext, docValuesContext, explain, explain, fetchFieldsContext, fetchFieldsContext, fetchResult, fetchSourceContext, fetchSourceContext, from, from, getMaxScore, getRelativeTimeInMillis, getTotalHits, hasScriptFields, hasStoredFields, highlight, highlight, minimumScore, parsedPostFilter, parsedQuery, parsedQuery, preProcess, query, queryResult, scriptFields, seqNoAndPrimaryTerm, seqNoAndPrimaryTerm, size, size, sort, sort, sourceRequested, storedFieldsContext, storedFieldsContext, terminateAfter, trackScores, trackScores, version, versionMethods inherited from class org.elasticsearch.search.internal.FilteredSearchContext
addDfsResult, addFetchResult, addQueryResult, addRankFeatureResult, addRescore, aggregations, bitsetFilterCache, dfsResult, fetchPhase, getSearchExecutionContext, getSearchExt, getTask, groupStats, id, indexShard, isCancelled, lowLevelCancellation, minimumScore, newIdLoader, newSourceLoader, numberOfShards, parsedPostFilter, queryPhaseRankShardContext, queryPhaseRankShardContext, rankFeatureResult, readerContext, request, rescore, scrollContext, searchAfter, searchAfter, searcher, searchType, setTask, shardTarget, source, suggest, terminateAfter, timeout, trackTotalHitsUpTo, trackTotalHitsUpToMethods inherited from class org.elasticsearch.search.internal.SearchContext
addReleasable, assignRescoreDocIds, close, getCancellationChecks, hasOnlySuggest, rescoreDocIds, rewrittenQuery, toString
-
Field Details
-
context
-
-
Constructor Details
-
InnerHitSubContext
-
-
Method Details
-
topDocs
- Throws:
IOException
-
getName
-
getProfilers
Description copied from class:SearchContextReturn a handle over the profilers for the current search request, ornullif profiling is not enabled.- Overrides:
getProfilersin classFilteredSearchContext
-
innerHits
- Overrides:
innerHitsin classFilteredSearchContext
-
setChildInnerHits
-
getInnerHitQueryWeight
- Throws:
IOException
-
parentSearchContext
-
getRootId
The _id of the root document. Since this ID is available on the context, inner hits can avoid re-loading the root _id. -
setRootId
-
getRootLookup
A source lookup for the root document. This shared lookup allows inner hits to avoid re-loading the root _source. -
setRootLookup
-