Class InnerHitsContext.InnerHitSubContext
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:
,
,
org.elasticsearch.core.Releasable
- Enclosing class:
- InnerHitsContext
-
Field Summary
Fields 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
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.lucene.search.Weight
getName()
The _id of the root document.A source lookup for the root document.void
<,InnerHitsContext.InnerHitSubContext> childInnerHits)
void
void
setRootLookup(SourceLookup rootLookup)
abstract TopDocsAndMaxScore
Methods inherited from class org.elasticsearch.search.internal.SubSearchContext
aggregations, buildFilteredQuery, collapse, docIdsToLoad, docIdsToLoad, docIdsToLoadSize, docValuesContext, docValuesContext, explain, explain, fetchFieldsContext, fetchFieldsContext, fetchResult, fetchSourceContext, fetchSourceContext, from, from, getRelativeTimeInMillis, groupStats, hasFetchSourceContext, hasScriptFields, hasStoredFields, highlight, highlight, minimumScore, parsedPostFilter, parsedQuery, parsedQuery, preProcess, query, queryResult, scriptFields, seqNoAndPrimaryTerm, seqNoAndPrimaryTerm, size, size, sort, sort, sourceRequested, storedFieldsContext, storedFieldsContext, suggest, terminateAfter, timeout, trackScores, trackScores, version, version
Methods inherited from class org.elasticsearch.search.internal.FilteredSearchContext
addRescore, addSearchExt, aggregations, bitsetFilterCache, collapse, dfsResult, fetchPhase, getProfilers, getSearchExecutionContext, getSearchExt, getTask, groupStats, id, indexShard, isCancelled, lowLevelCancellation, minimumScore, numberOfShards, parsedPostFilter, queryCollectors, readerContext, request, rescore, scrollContext, searchAfter, searchAfter, searcher, searchType, setTask, shardTarget, source, suggest, terminateAfter, timeout, trackTotalHitsUpTo, trackTotalHitsUpTo
Methods inherited from class org.elasticsearch.search.internal.SearchContext
addReleasable, assignRescoreDocIds, close, hasOnlySuggest, rescoreDocIds, toString
Methods inherited from class java.lang.
, , , , , , , , ,
-
Field Details
-
context
-
-
Constructor Details
-
InnerHitSubContext
-
-
Method Details
-
topDocs
- Throws:
-
getName
public getName() -
innerHits
- Overrides:
innerHits
in classFilteredSearchContext
-
setChildInnerHits
-
getInnerHitQueryWeight
protected org.apache.lucene.search.Weight getInnerHitQueryWeight() throws- Throws:
-
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
-