版本: 6.8-7.9
简要来说,当您尝试在 Elasticsearch 中对不支持 [null_value] 属性的字段类型使用该属性时,就会出现此错误。并非所有字段类型都支持此属性。要解决此问题,您应该将字段类型更改为支持 [null_value] 属性的类型,或者从字段映射中删除 [null_value] 属性。或者,您可以在将数据索引到 Elasticsearch 之前,在应用程序代码中处理空值。
日志上下文 #
日志 “Property [null_value] is not supported for [” 类名是 RangeFieldMapper.java. 我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入上下文的人参考:
for (Iterator> iterator = node.entrySet().iterator(); iterator.hasNext();) {
Map.Entryentry = iterator.next();
String propName = entry.getKey();
Object propNode = entry.getValue();
if (propName.equals("null_value")) {
throw new MapperParsingException("Property [null_value] is not supported for [" + this.type.name
+ "] field types.");
} else if (propName.equals("coerce")) {
builder.coerce(XContentMapValues.nodeBooleanValue(propNode; name + ".coerce"));
iterator.remove();
} else if (propName.equals("locale")) {





