版本: 7.2-8.9
简要来说,当您尝试在 Elasticsearch 中不支持 “geometries” 参数的字段类型上使用该参数时,会出现此错误。这通常发生在非地理空间字段类型上。要解决此问题,请确保您应用 “geometries” 参数的字段是地理空间类型,例如 “geo_shape” 或 “geo_point”。如果不是,您可能需要使用正确的字段类型重新索引数据,或者为您的地理空间数据创建一个正确类型的新字段。
日志上下文 #
日志 “parameter geometries is not supported for type” 的类名是 GeoJson.java。我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入背景信息的人参考:
/**
* Checks that all passed parameters except type are null; generates corresponding error messages if they are not
*/
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) {





