版本: 6.8-8
简而言之,当 Elasticsearch 中的属性(propName)被赋予空值时会发生此错误,这是不允许的。要解决此问题,请确保在索引之前为属性分配有效的非空值。如果该属性不是必需的,您可以从文档中删除它,或者使用 “null_value” 参数将空值替换为默认值。另外,请检查您的数据源,防止向 Elasticsearch 发送空值。
日志上下文 #
日志 “[” + propName + “] must not have a [null] value” 的类名是 TypeParsers.java. 我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入了解的人参考:
if (false == propName.equals("null_value") && propNode == null) {
/*
* No properties *except* null_value are allowed to have null. So we catch it here and tell the user something useful rather
* than send them a null pointer exception later.
*/
throw new MapperParsingException("[" + propName + "] must not have a [null] value");
}
}
/**
* Parse the {@code meta} key of the mapping.





