summaryrefslogtreecommitdiff
path: root/core/src/main/java/org/elasticsearch/index/query/AbstractQueryBuilder.java
diff options
context:
space:
mode:
authorJim Ferenczi <jim.ferenczi@elastic.co>2017-05-23 13:06:22 +0200
committerGitHub <noreply@github.com>2017-05-23 13:06:22 +0200
commit9087803cd90a0a55bab887805f8dd2a5cccee8f8 (patch)
treecacc7df5e609cae1d7582381c00379e829c5f9b9 /core/src/main/java/org/elasticsearch/index/query/AbstractQueryBuilder.java
parenta5fffa2988252ca0f5ad8befc98545ba5a74d9f7 (diff)
Add the ability to define custom inner hit sub context builder (#24676)
This commit moves the handling of nested and parent/child inner hits to specialized classes that can be defined outside of ES core. InnerHitBuilderContext is now used by the parent query (nested or hasChild, ...) to build the sub context from the InnerHitBuilder definition. BWC is also ensured so that nodes in previous versions can still send/receive inner hits to/from this version. Relates #20257
Diffstat (limited to 'core/src/main/java/org/elasticsearch/index/query/AbstractQueryBuilder.java')
-rw-r--r--core/src/main/java/org/elasticsearch/index/query/AbstractQueryBuilder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/java/org/elasticsearch/index/query/AbstractQueryBuilder.java b/core/src/main/java/org/elasticsearch/index/query/AbstractQueryBuilder.java
index 9d18e42138..72af541476 100644
--- a/core/src/main/java/org/elasticsearch/index/query/AbstractQueryBuilder.java
+++ b/core/src/main/java/org/elasticsearch/index/query/AbstractQueryBuilder.java
@@ -283,7 +283,7 @@ public abstract class AbstractQueryBuilder<QB extends AbstractQueryBuilder<QB>>
* Extracts the inner hits from the query tree.
* While it extracts inner hits, child inner hits are inlined into the inner hit builder they belong to.
*/
- protected void extractInnerHitBuilders(Map<String, InnerHitBuilder> innerHits) {
+ protected void extractInnerHitBuilders(Map<String, InnerHitContextBuilder> innerHits) {
}
// Like Objects.requireNotNull(...) but instead throws a IllegalArgumentException