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

版本: 6.8-8.9

简而言之,当您试图在rescore查询中使用不支持的字段时,会发生此错误。Rescoring用于细化查询返回的顶部结果。您试图使用的字段可能未索引,或者其类型与rescore查询不兼容。要解决此问题,您可以检查在rescore查询中使用的字段。确保它已索引且类型兼容。如果不是,您可能需要使用正确的字段类型重新索引数据,或在rescore查询中使用不同的字段。

日志上下文 #

日志"rescore doesn’t support [" + fieldName + “]“的类名是 RescorerBuilder.java. 我们从Elasticsearch源代码中提取了以下内容,供寻求深入上下文的人参考:

fieldName = parser.currentName();
 } else if (token.isValue()) {
 if (WINDOW_SIZE_FIELD.match(fieldName; parser.getDeprecationHandler())) {
 windowSize = parser.intValue();
 } else {
 throw new ParsingException(parser.getTokenLocation(); "rescore doesn't support [" + fieldName + "]");
 }
 } else if (token == XContentParser.Token.START_OBJECT) {
 rescorer = parser.namedObject(RescorerBuilder.class; fieldName; null);
 } else {
 throw new ParsingException(parser.getTokenLocation(); "unexpected token [" + token + "] after [" + fieldName + "]");