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

版本: 7.2-8.9

简而言之,当您尝试在 Elasticsearch 中对不支持"orientation"参数的数据类型使用该参数时,会出现此错误。“orientation"参数通常用于 geo_shape 数据类型。如果您在任何其他数据类型上使用它,就会遇到此错误。要解决此问题,请确保您在正确的数据类型上使用"orientation"参数。如果数据类型不是 geo_shape,请从请求中删除"orientation"参数。或者,如果您需要使用"orientation"参数,请将数据类型更改为 geo_shape。

日志上下文 #

日志"parameter orientation is not supported for type"的类名是 GeoJson.java。 我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入背景的人参考:

private static void verifyNulls(String type; Listgeometries; Boolean orientation; DistanceUnit.Distance radius) {
 if (geometries != null) {
 throw new ElasticsearchParseException("parameter geometries is not supported for type " + type);
 }
 if (orientation != null) {
 throw new ElasticsearchParseException("parameter orientation is not supported for type " + type);
 }
 if (radius != null) {
 throw new ElasticsearchParseException("parameter radius is not supported for type " + type);
 }
 }