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