Unsuppoted shape type – How to solve this Elasticsearch exception

Opster Team

August-23, Version: 7.2-7.9

Briefly, this error occurs when Elasticsearch encounters a shape type that it doesn’t support in its geo_shape field. This could be due to a mismatch between the shape type in your data and the ones Elasticsearch can handle. To resolve this issue, you can either change the shape type in your data to one that Elasticsearch supports (like point, linestring, polygon, etc.) or update your Elasticsearch version if it’s outdated, as newer versions tend to support more shape types.

This guide will help you check for common problems that cause the log ” unsuppoted shape type ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: .

Log Context

Log “unsuppoted shape type” class name is GeoJson.java. We extracted the following from Elasticsearch source code for those seeking an in-depth context :

 return coordinates.asMultiPolygon(orientation != null ? orientation : defaultOrientation; coerce);
 case ENVELOPE:
 verifyNulls(type; geometries; orientation; radius);
 return coordinates.asRectangle();
 default:
 throw new ElasticsearchParseException("unsuppoted shape type " + type);
 }
 }  /**
 * Checks that all passed parameters except type are null; generates corresponding error messages if they are not

 

How helpful was this guide?

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?