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

版本: 8-8.9

简而言之,当您尝试在Elasticsearch中使用不支持或无法识别的字段时,就会出现此错误。这可能是由于字段名拼写错误,或者该字段在索引映射中不存在。要解决此问题,您可以检查字段名是否有拼写错误,确保该字段存在于索引映射中,如果缺失则将其添加到索引映射中。此外,请确保该字段与您要执行的操作兼容。

日志上下文 #

日志"Unsupported field [" + parameterName + “]“的类名是 Script.java。我们从Elasticsearch源代码中提取了以下内容,供那些寻求深入理解的人参考:

type = ScriptType.STORED;
} else {
    throw new ElasticsearchParseException("Value must be of type String: [" + parameterName + "]");
}
} else {
    throw new ElasticsearchParseException("Unsupported field [" + parameterName + "]");
}
}
if (script == null) {
    throw new ElasticsearchParseException(
        "Expected one of [{}] or [{}] fields; but found none";