Skip to content

Commit ac73676

Browse files
.
Signed-off-by: Bruce Hong <bruce.hong@glean.com>
1 parent b8d4c5a commit ac73676

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

server/src/main/java/org/opensearch/index/mapper/DocumentParser.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -886,6 +886,9 @@ private static Mapper.Builder<?> createBuilderFromDynamicValue(
886886
if (builder != null) {
887887
return builder;
888888
}
889+
if (dynamic == ObjectMapper.Dynamic.FALSE_ALLOW_TEMPLATES) {
890+
return null;
891+
}
889892
}
890893
// TODO how do we identify dynamically that its a binary value?
891894
throw new IllegalStateException(

0 commit comments

Comments
 (0)