From 7c29dd2729d2e9b7e53f109288fbf184b6c98483 Mon Sep 17 00:00:00 2001 From: iverase Date: Wed, 11 Oct 2023 14:37:32 +0200 Subject: [PATCH] index does not throw IOException anymore --- .../index/mapper/GeoShapeWithDocValuesFieldMapper.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/x-pack/plugin/spatial/src/main/java/org/elasticsearch/xpack/spatial/index/mapper/GeoShapeWithDocValuesFieldMapper.java b/x-pack/plugin/spatial/src/main/java/org/elasticsearch/xpack/spatial/index/mapper/GeoShapeWithDocValuesFieldMapper.java index 0020a97368f0d..3e904f59ad44e 100644 --- a/x-pack/plugin/spatial/src/main/java/org/elasticsearch/xpack/spatial/index/mapper/GeoShapeWithDocValuesFieldMapper.java +++ b/x-pack/plugin/spatial/src/main/java/org/elasticsearch/xpack/spatial/index/mapper/GeoShapeWithDocValuesFieldMapper.java @@ -444,13 +444,7 @@ protected void indexScriptValues( int doc, DocumentParserContext documentParserContext ) { - fieldType().scriptValues.valuesForDoc(searchLookup, readerContext, doc, geometry -> { - try { - index(documentParserContext, geometry); - } catch (IOException e) { - throw new UncheckedIOException(e); // only thrown by MultiFields which is always null - } - }); + fieldType().scriptValues.valuesForDoc(searchLookup, readerContext, doc, geometry -> index(documentParserContext, geometry)); } @Override