版本: 7.9-8.9
简而言之,当您尝试在Elasticsearch中对GEO_POINT数据类型执行取整操作时,会出现此错误。GEO_POINT数据类型用于存储地理位置信息,不支持取整操作。要解决此问题,您可以:
- 将字段的数据类型更改为支持取整的类型
- 修改查询以避免对GEO_POINT字段进行取整
- 或者在索引之前处理数据,在必要时包含取整后的值
日志上下文 #
日志 “can’t round a [GEO_POINT]” 的类名是 ValuesSource.java。我们从Elasticsearch源代码中提取了以下内容,供那些需要深入了解上下文的人参考:
return org.elasticsearch.index.fielddata.FieldData.docsWithValue(geoPoints);
} @Override
public final FunctionroundingPreparer(AggregationContext context) throws IOException {
throw new AggregationExecutionException("can't round a [GEO_POINT]");
} /**
* Return geo-point values.
*/





