📣 极限科技诚招搜索运维工程师(Elasticsearch/Easysearch)- 全职/北京 👉 : 立即申请加入

版本: 6.8-8.9

简而言之,当 Elasticsearch 由于意外字段无法解析边界框时,会发生此错误。这通常发生在字段未正确定义或映射中缺少该字段的情况下。要解决此问题,您可以检查索引的映射以确保字段正确定义。或者,您可以使用正确的映射重新索引数据。此外,确保边界框坐标格式正确且在有效范围内。

日志上下文 #

日志 “failed to parse bounding box. unexpected field [{}]” 的类名是 BoundingBox.java。 我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入上下文的人使用:

} else if (BOTTOM_LEFT_FIELD.match(currentFieldName; parser.getDeprecationHandler())) {
 SpatialPoint point = parsePointWith(parser; GeoUtils.EffectivePoint.BOTTOM_LEFT);
 this.bottom = point.getY();
 this.left = point.getX();
 } else {
 throw new ElasticsearchParseException("failed to parse bounding box. unexpected field [{}]"; currentFieldName);
 }
 }
 } else {
 throw new ElasticsearchParseException("failed to parse bounding box. field name expected but [{}] found"; token);
 }