Geometries not included – How to solve this Elasticsearch exception

Opster Team

August-23, Version: 6.8-8.9

Briefly, this error occurs when Elasticsearch is trying to process a geo_shape query, but the required geometries data is missing or not correctly formatted. To resolve this issue, you should ensure that the geometries data is included in the correct format in your query. You could also check your mapping to ensure that the field is correctly set as geo_shape. If the error persists, consider reindexing your data to ensure that all necessary fields are included and correctly formatted.

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

Log Context

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

 } else {
 shapeType = ShapeType.forName(type);
 }
 if (shapeType == ShapeType.GEOMETRYCOLLECTION) {
 if (geometries == null) {
 throw new ElasticsearchParseException("geometries not included");
 }
 if (coordinates != null) {
 throw new ElasticsearchParseException("parameter coordinates is not supported for type " + type);
 }
 verifyNulls(type; null; orientation; radius);

 

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?