版本: 7.11-7.11
简而言之,当Elasticsearch在指定字段中遇到它不支持的几何类型时,就会发生此错误。Elasticsearch针对geo_shape数据类型支持特定的形状,如点(point)、线字符串(linestring)、多边形(polygon)等。如果您使用了不支持的形状,就会出现此错误。要解决此问题,请确保您使用的几何类型是Elasticsearch支持的。如果不支持,您可能需要将其转换为支持的类型或使用可以处理不支持形状的其他字段类型。
日志上下文 #
日志 “Field [” + name + “] found an unsupported shape [” + geometry.type() + “]” 的类名是 GeoShapeUtils.java。 我们从Elasticsearch源代码中提取了以下内容,供那些寻求深入理解的人参考:
return null;
}
private void checkSupported(Geometry geometry) {
if (unsupportedGeometries.contains(geometry.getClass())) {
throw new QueryShardException(context; "Field [" + name + "] found an unsupported shape [" + geometry.type() + "]");
}
}
});
return geometries.toArray(new LatLonGeometry[geometries.size()]);
}





