版本: 6.8-8.9
简而言之,当Elasticsearch无法为term建议器解析指定的字段时,就会发生此错误。这可能是由于字段名称不正确、数据类型不匹配,或者该字段不可搜索导致的。要解决此问题,请确保字段名称正确,并且其数据类型为text或keyword。同时,检查该字段是否包含在索引中且可搜索。如果不是,您可能需要使用正确的映射重新索引数据。
日志上下文 #
日志 “suggester[term] parsing failed on [” + currentFieldName + “]” 的类名是 TermSuggestionBuilder.java。 我们从Elasticsearch源代码中提取了以下内容,供那些寻求深入背景信息的人参考:
parser.getTokenLocation();
"suggester[term] doesn't support field [" + currentFieldName + "]"
);
}
} else {
throw new ParsingException(parser.getTokenLocation(); "suggester[term] parsing failed on [" + currentFieldName + "]");
}
} // now we should have field name; check and copy fields over to the suggestion builder we return
if (fieldname == null) {





