版本: 8-8.9
简而言之,当 Elasticsearch 中的字段尝试覆盖 time_series_metric 时会发生此错误,这是不允许的。当您尝试创建一个与现有 time_series_metric 同名的新字段时,就会出现这种情况。要解决此问题,您可以重命名要创建的新字段,或者如果现有的 time_series_metric 不再需要,可以将其删除。或者,如果必须使用相同的名称,可以为新字段创建一个新的索引。
日志上下文 #
日志 “Field [” + name + “] attempted to shadow a time_series_metric” 的类名是 MappingLookup.java。 我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入上下文的人参考:
}
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");
}
}
}





