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,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 SearchContextcontextFields 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 protectedInnerHitSubContext(java.lang.String name, SearchContext context) -
Method Summary
Modifier and Type Method Description protected org.apache.lucene.search.WeightcreateInnerHitQueryWeight()java.lang.StringgetName()UidgetUid()InnerHitsContextinnerHits()SearchContextparentSearchContext()voidsetChildInnerHits(java.util.Map<java.lang.String,InnerHitsContext.InnerHitSubContext> childInnerHits)voidsetUid(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, versionMethods inherited from class org.elasticsearch.search.internal.FilteredSearchContext
addSearchExt, aggregations, aliasFilter, bigArrays, bitsetFilterCache, collapse, dfsResult, fetchPhase, 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, smartNameFieldType, source, suggest, terminateAfter, timeout, trackTotalHitsUpTo, trackTotalHitsUpToMethods inherited from class org.elasticsearch.search.internal.SearchContext
addReleasable, alreadyClosed, clearReleasables, close, closeInternal, hasOnlySuggest, toStringMethods inherited from class org.elasticsearch.common.util.concurrent.AbstractRefCounted
decRef, incRef, refCount, tryIncRef
-
Field Details
-
Constructor Details
-
Method Details
-
topDocs
- Throws:
java.io.IOException
-
getName
public java.lang.String getName()- Overrides:
getNamein classAbstractRefCounted
-
innerHits
- Overrides:
innerHitsin 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
-