版本: 7.9-8.9
简而言之,当您尝试对 Elasticsearch 中的 geo_shape 字段进行取整操作时,会发生此错误,因为该操作不受支持。Geo_shape 字段存储多边形和点等地理数据,对它们进行取整是没有意义的。要解决此问题,您应该避免对 geo_shape 字段应用取整函数。如果您需要操作 geo_shape 数据,请考虑使用适当的地理函数或将数据转换为支持您所需操作的格式。
日志上下文 #
日志 “can’t round a [geo_shape]” 的类名是 GeoShapeValuesSource.java。我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入上下文的人参考:
}
}; @Override
protected Function roundingPreparer(AggregationContext context) {
throw new AggregationExecutionException("can't round a [geo_shape]");
} public static class Fielddata extends GeoShapeValuesSource { protected final IndexShapeFieldData indexFieldData;





