版本: 6.8-7.15
简而言之,当 Elasticsearch 中的边界框定义存在冲突时,会出现此错误。这可能是由于为边界框提供了不正确或不一致的坐标导致的。要解决此问题,您应该首先验证为边界框提供的坐标。确保坐标是正确且一致的。如果错误仍然存在,请检查边界框定义的格式。它应该符合 Elasticsearch 期望的正确格式。最后,确保边界框定义不与 Elasticsearch 查询中的任何其他定义冲突。
日志上下文 #
日志 “failed to parse bounding box. Conflicting definition found” 的类名是 GeoBoundingBox.java. 我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入上下文的人参考:
}
}
if (envelope != null) {
if (Double.isNaN(top) == false || Double.isNaN(bottom) == false || Double.isNaN(left) == false ||
Double.isNaN(right) == false) {
throw new ElasticsearchParseException("failed to parse bounding box. Conflicting definition found "
+ "using well-known text and explicit corners.");
}
GeoPoint topLeft = new GeoPoint(envelope.getMaxLat(); envelope.getMinLon());
GeoPoint bottomRight = new GeoPoint(envelope.getMinLat(); envelope.getMaxLon());
return new GeoBoundingBox(topLeft; bottomRight);





