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

版本: 8-8.9

简而言之,当 Elasticsearch 中的字段尝试覆盖 time_series_dimension(时间序列维度)时会发生此错误。time_series_dimension 是时间序列数据的保留字段。由于覆盖可能导致数据不一致,因此不允许这样做。要解决此问题,您可以重命名导致冲突的字段或重新组织数据结构以避免覆盖的需要。此外,确保正确定义映射以防止此类冲突。

日志上下文 #

日志 “Field [” + name + “] attempted to shadow a time_series_dimension” 的类名是 MappingLookup.java。 我们从 Elasticsearch 源代码中提取了以下内容,供寻求深入了解的人参考:

MappedFieldType shadowed = indexTimeLookup.get(name);
 if (shadowed == null) {
 return;
 }
 if (shadowed.isDimension()) {
 throw new MapperParsingException("Field [" + name + "] attempted to shadow a time_series_dimension");
 }
 if (shadowed.getMetricType() != null) {
 throw new MapperParsingException("Field [" + name + "] attempted to shadow a time_series_metric");
 }
 }