版本: 7.1-7.15
简而言之,当您尝试在字段上使用 Elasticsearch 不支持的属性时,就会发生此错误。value] 不受支持。这可能是由于拼写错误、使用了已弃用的属性,或使用了不适用于该字段数据类型的属性。要解决此问题,您应该首先检查 Elasticsearch 文档以确保该属性有效。如果有效,请确保拼写正确并适用于该字段的数据类型。如果该属性已被弃用,您需要找到并使用更新后的属性。
日志上下文 #
日志 “Property [value] on field [” 的类名是 ConstantKeywordFieldMapper.java。 我们从 Elasticsearch 源代码中提取了以下内容,以便那些寻求深入上下文的人参考:
// This is defined as updateable because it can be updated once; from [null] to any value;
// by a dynamic mapping update. Once it has been set; however; the value cannot be changed.
private final Parametervalue = new Parameter<>("value"; true; () -> null;
(n; c; o) -> {
if (o instanceof Number == false && o instanceof CharSequence == false) {
throw new MapperParsingException("Property [value] on field [" + n +
"] must be a number or a string; but got [" + o + "]");
}
return o.toString();
}; m -> toType(m).fieldType().value);
private final Parameter> meta = Parameter.metaParam();





