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

版本: 7.2-7.9

简而言之,当Elasticsearch在geo_shape字段中遇到它不支持的形状类型时,就会出现此错误。这可能是由于数据中的形状类型与Elasticsearch可以处理的形状类型不匹配造成的。要解决此问题,您可以将数据中的形状类型更改为Elasticsearch支持的类型(如point、linestring、polygon等),或者如果Elasticsearch版本过时,则更新它,因为较新的版本往往支持更多形状类型。

日志上下文 #

日志"unsuppoted shape type"的类名是 GeoJson.java。我们从Elasticsearch源代码中提取了以下内容,供那些寻求深入上下文的人使用:

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