From e615a1c50beb1f477f833fd2dae5c72634ef6779 Mon Sep 17 00:00:00 2001 From: Tal Levy Date: Fri, 12 Apr 2019 08:10:09 -0700 Subject: [PATCH] revert mapper change --- .../org/elasticsearch/index/mapper/GeoShapeFieldMapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/java/org/elasticsearch/index/mapper/GeoShapeFieldMapper.java b/server/src/main/java/org/elasticsearch/index/mapper/GeoShapeFieldMapper.java index 58b7322d0b9a1..72b3e68fa025e 100644 --- a/server/src/main/java/org/elasticsearch/index/mapper/GeoShapeFieldMapper.java +++ b/server/src/main/java/org/elasticsearch/index/mapper/GeoShapeFieldMapper.java @@ -108,7 +108,7 @@ public GeoShapeFieldType fieldType() { @Override public void parse(ParseContext context) throws IOException { try { - Geometry shape = context.parseExternalValue(Geometry.class); + Object shape = context.parseExternalValue(Object.class); if (shape == null) { ShapeBuilder shapeBuilder = ShapeParser.parse(context.parser(), this); if (shapeBuilder == null) {