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

版本: 7.8-7.8

简而言之,当尝试在Elasticsearch中更新嵌套对象映射的[include_in_parent]参数时,会发生此错误。该参数一旦设置就不可更改,无法更新。要解决此问题,您可以重新创建具有所需设置的索引,或者添加一个具有正确设置的新字段并重新索引数据。重要的是要仔细规划索引结构以避免此类问题。

日志上下文 #

日志"The [include_in_parent] parameter can’t be updated for the nested object mapping [“的类名是 ObjectMapper.java。 我们从Elasticsearch源代码中提取了以下内容,供那些寻求深入了解上下文的人参考:

if (isEnabled() != mergeWith.isEnabled()) {
 throw new MapperException("The [enabled] parameter can't be updated for the object mapping [" + name() + "].");
 }  if (nested().isIncludeInParent() != mergeWith.nested().isIncludeInParent()) {
 throw new MapperException("The [include_in_parent] parameter can't be updated for the nested object mapping [" +
 name() + "].");
 }  if (nested().isIncludeInRoot() != mergeWith.nested().isIncludeInRoot()) {
 throw new MapperException("The [include_in_root] parameter can't be updated for the nested object mapping [" +