Package org.elasticsearch.index.query
Class InnerHitContextBuilder
java.lang.Object
org.elasticsearch.index.query.InnerHitContextBuilder
A builder for
InnerHitsContext.InnerHitSubContext
-
Field Summary
Modifier and TypeFieldDescriptionprotected Map<String,InnerHitContextBuilder>
protected InnerHitBuilder
protected QueryBuilder
-
Constructor Summary
ModifierConstructorDescriptionprotected
InnerHitContextBuilder(QueryBuilder query, InnerHitBuilder innerHitBuilder, Map<String,InnerHitContextBuilder> children)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
build(SearchContext parentSearchContext, InnerHitsContext innerHitsContext)
protected abstract void
doBuild(SearchContext parentSearchContext, InnerHitsContext innerHitsContext)
static void
extractInnerHits(QueryBuilder query, Map<String,InnerHitContextBuilder> innerHitBuilders)
protected void
setupInnerHitsContext(SearchExecutionContext searchExecutionContext, InnerHitsContext.InnerHitSubContext innerHitsContext)
-
Field Details
-
query
-
innerHitBuilder
-
children
-
-
Constructor Details
-
InnerHitContextBuilder
protected InnerHitContextBuilder(QueryBuilder query, InnerHitBuilder innerHitBuilder, Map<String,InnerHitContextBuilder> children)
-
-
Method Details
-
innerHitBuilder
-
build
public final void build(SearchContext parentSearchContext, InnerHitsContext innerHitsContext) throws IOException- Throws:
IOException
-
doBuild
protected abstract void doBuild(SearchContext parentSearchContext, InnerHitsContext innerHitsContext) throws IOException- Throws:
IOException
-
extractInnerHits
public static void extractInnerHits(QueryBuilder query, Map<String,InnerHitContextBuilder> innerHitBuilders) -
setupInnerHitsContext
protected void setupInnerHitsContext(SearchExecutionContext searchExecutionContext, InnerHitsContext.InnerHitSubContext innerHitsContext) throws IOException- Throws:
IOException
-