版本: 8.1-8.9
简而言之,当 Elasticsearch 由于字段类型不正确、日期格式错误或内存不足等问题而无法执行时间序列聚合时,会出现此错误。要解决此问题,请确保您要聚合的字段属于正确的类型(date 或 numeric)。如果是日期字段,请检查日期格式。如果问题仍然存在,请考虑增加 Elasticsearch 的堆大小或优化查询以减少内存消耗。
Log Context #
日志 “Could not perform time series aggregation” 的类名是 AggregationPhase.java。我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入上下文的用户参考:
searcher.setMinimumScore(context.minimumScore());
searcher.setProfiler(context);
try {
searcher.search(context.rewrittenQuery(), bucketCollector);
} catch (IOException e) {
throw new AggregationExecutionException("Could not perform time series aggregation", e);
}
collector = BucketCollector.NO_OP_COLLECTOR;
} else {
collector = bucketCollector.asCollector();
}





