Class InnerHitsContext.InnerHitSubContext
java.lang.Object
org.elasticsearch.common.util.concurrent.AbstractRefCounted
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:
java.io.Closeable
,java.lang.AutoCloseable
,Releasable
,org.elasticsearch.common.util.concurrent.RefCounted
- Enclosing class:
- InnerHitsContext
public abstract static class InnerHitsContext.InnerHitSubContext extends SubSearchContext
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.search.internal.SearchContext
SearchContext.Lifetime
-
Field Summary
Fields Modifier and Type Field Description protected SearchContext
context
Fields inherited from class org.elasticsearch.search.internal.SearchContext
DEFAULT_TERMINATE_AFTER, DEFAULT_TRACK_TOTAL_HITS_UP_TO, TRACK_TOTAL_HITS_ACCURATE, TRACK_TOTAL_HITS_DISABLED
-
Constructor Summary
Constructors Modifier Constructor Description protected
InnerHitSubContext(java.lang.String name, SearchContext context)
-
Method Summary
Modifier and Type Method Description protected org.apache.lucene.search.Weight
createInnerHitQueryWeight()
java.lang.String
getName()
Uid
getUid()
InnerHitsContext
innerHits()
SearchContext
parentSearchContext()
void
setChildInnerHits(java.util.Map<java.lang.String,InnerHitsContext.InnerHitSubContext> childInnerHits)
void
setUid(Uid uid)
abstract TopDocsAndMaxScore[]
topDocs(SearchHit[] hits)
Methods inherited from class org.elasticsearch.search.internal.SubSearchContext
accessed, addRescore, aggregations, buildFilteredQuery, collapse, docIdsToLoad, docIdsToLoad, docIdsToLoadFrom, docIdsToLoadSize, doClose, docValuesContext, docValuesContext, explain, explain, fetchResult, fetchSourceContext, fetchSourceContext, from, from, getRelativeTimeInMillis, groupStats, hasFetchSourceContext, hasScriptFields, hasStoredFields, hasStoredFieldsContext, highlight, highlight, keepAlive, minimumScore, parsedPostFilter, parsedQuery, parsedQuery, preProcess, query, queryResult, scriptFields, scrollContext, seqNoAndPrimaryTerm, seqNoAndPrimaryTerm, size, size, sort, sort, sourceRequested, storedFieldsContext, storedFieldsContext, storedFieldsRequested, suggest, terminateAfter, timeout, trackScores, trackScores, version, version
Methods inherited from class org.elasticsearch.search.internal.FilteredSearchContext
addSearchExt, aggregations, aliasFilter, bigArrays, bitsetFilterCache, collapse, dfsResult, fetchPhase, fieldType, getForField, getObjectMapper, getOriginNanoTime, getProfilers, getQueryShardContext, getSearchExt, getTask, groupStats, id, indexShard, isCancelled, keepAlive, lastAccessTime, lookup, lowLevelCancellation, mapperService, minimumScore, numberOfShards, parsedPostFilter, queryBoost, queryCollectors, request, rescore, scrollContext, searchAfter, searchAfter, searcher, searchType, setTask, shardTarget, similarityService, source, suggest, terminateAfter, timeout, trackTotalHitsUpTo, trackTotalHitsUpTo
Methods inherited from class org.elasticsearch.search.internal.SearchContext
addReleasable, alreadyClosed, clearReleasables, close, closeInternal, hasOnlySuggest, toString
-
Field Details
-
Constructor Details
-
Method Details
-
topDocs
- Throws:
java.io.IOException
-
getName
public java.lang.String getName()- Overrides:
getName
in classorg.elasticsearch.common.util.concurrent.AbstractRefCounted
-
innerHits
- Overrides:
innerHits
in classFilteredSearchContext
-
setChildInnerHits
public void setChildInnerHits(java.util.Map<java.lang.String,InnerHitsContext.InnerHitSubContext> childInnerHits) -
createInnerHitQueryWeight
protected org.apache.lucene.search.Weight createInnerHitQueryWeight() throws java.io.IOException- Throws:
java.io.IOException
-
parentSearchContext
-
getUid
-
setUid
-