📣 极限科技诚招搜索运维工程师(Elasticsearch/Easysearch)- 全职/北京 👉 : 立即申请加入

版本: 6.8-8.9

简而言之,当 Elasticsearch 无法确定特定字段或字段组合的数据类型时,就会出现此错误。这可能是由于映射定义不正确或缺失导致的。要解决此问题,您可以显式定义相关字段的映射,指定正确的数据类型。或者,您可以重新索引数据,确保在索引过程中正确推断数据类型。最后,检查您的数据是否存在可能导致数据类型混淆的不一致性或异常情况。

日志上下文 #

日志 “Cannot determine datatype for combination [{}] [{}]” 的类名是 Intervals.java。我们从 Elasticsearch 源代码中提取了以下内容,供那些需要深入上下文的用户参考:

return INTERVAL_HOUR_TO_SECOND;
 }
 if (leading == TimeUnit.MINUTE && trailing == TimeUnit.SECOND) {
 return INTERVAL_MINUTE_TO_SECOND;
 }
 throw new ParsingException(source; "Cannot determine datatype for combination [{}] [{}]"; leading; trailing);
 }
 }  // return the compatible interval between the two - it is assumed the types are intervals
 // YEAR and MONTH -> YEAR_TO_MONTH