From 99def84fcd570be0e36e750358ba9c281d15a47b Mon Sep 17 00:00:00 2001 From: carlosdelest Date: Fri, 27 Oct 2023 21:14:41 +0200 Subject: [PATCH] Added back modelForField --- .../java/org/elasticsearch/index/mapper/MappingLookup.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/src/main/java/org/elasticsearch/index/mapper/MappingLookup.java b/server/src/main/java/org/elasticsearch/index/mapper/MappingLookup.java index 7c44f33fbafa5..14c3c4371c030 100644 --- a/server/src/main/java/org/elasticsearch/index/mapper/MappingLookup.java +++ b/server/src/main/java/org/elasticsearch/index/mapper/MappingLookup.java @@ -491,4 +491,8 @@ public void validateDoesNotShadow(String name) { throw new MapperParsingException("Field [" + name + "] attempted to shadow a time_series_metric"); } } + + public String modelForField(String fieldName) { + return fieldTypeLookup.modelForField(fieldName); + } }