Exception parsing coordinates found Z value but ignore z value – How to solve this Elasticsearch exception

Opster Team

August-23, Version: 7.11-7.15

Briefly, this error occurs when Elasticsearch encounters a Z value in the coordinates while parsing geo-points, but the “ignore_z_value” setting is not enabled. This setting allows Elasticsearch to ignore any Z values that represent altitude in the coordinates. To resolve this issue, you can either remove the Z value from your coordinates if it’s not needed, or you can set “ignore_z_value” to true in your mapping to allow Elasticsearch to ignore these values.

This guide will help you check for common problems that cause the log ” Exception parsing coordinates: found Z value [{}] but [ignore_z_value] ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: .

Log Context

Log “Exception parsing coordinates: found Z value [{}] but [ignore_z_value]” class name is GeoPoint.java. We extracted the following from Elasticsearch source code for those seeking an in-depth context :

 return builder.latlon(lat; lon);
 }  public static double assertZValue(final boolean ignoreZValue; double zValue) {
 if (ignoreZValue == false) {
 throw new ElasticsearchParseException("Exception parsing coordinates: found Z value [{}] but [ignore_z_value] "
 + "parameter is [{}]"; zValue; ignoreZValue);
 }
 return zValue;
 }
}

 

 [ratemypost]