From 6e89754ffddeb987f06e8433f1cf29be483a44f0 Mon Sep 17 00:00:00 2001 From: Jim Ferenczi Date: Thu, 6 Jun 2024 14:54:11 +0100 Subject: [PATCH] apply review comments --- .../org/elasticsearch/index/mapper/NestedObjectMapper.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/src/main/java/org/elasticsearch/index/mapper/NestedObjectMapper.java b/server/src/main/java/org/elasticsearch/index/mapper/NestedObjectMapper.java index 8cfbc44be952e..65748847406ea 100644 --- a/server/src/main/java/org/elasticsearch/index/mapper/NestedObjectMapper.java +++ b/server/src/main/java/org/elasticsearch/index/mapper/NestedObjectMapper.java @@ -164,9 +164,13 @@ public MapperBuilderContext createChildContext(String name, Dynamic dynamic) { private final Explicit includeInRoot; private final Explicit includeInParent; + // The query to identify parent documents private final Query parentTypeFilter; + // The path of the nested field private final String nestedTypePath; + // The query to identify nested documents at this level private final Query nestedTypeFilter; + // Function to create a bitset for identifying parent documents private final Function bitsetProducer; NestedObjectMapper(