版本: 6.8-8.9
简而言之,当在 Elasticsearch 的 span_first 查询中使用了不支持的字段时,会出现此错误。span_first 查询仅支持 “match” 和 “end” 字段。如果使用任何其他字段,将会抛出此错误。要解决此问题,请确保在 span_first 查询中仅使用支持的字段。如果需要使用其他字段,请考虑使用支持这些字段的其他类型查询。
日志上下文 #
日志 “[span_first] query does not support [” + currentFieldName + “]” 的类名是 SpanFirstQueryBuilder.java。 我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入上下文的人参考:
throw new ParsingException(parser.getTokenLocation(); "span_first [match] must be of type span query");
}
match = (SpanQueryBuilder) query;
checkNoBoost(NAME; currentFieldName; parser; match);
} else {
throw new ParsingException(parser.getTokenLocation(); "[span_first] query does not support [" + currentFieldName + "]");
}
} else {
if (AbstractQueryBuilder.BOOST_FIELD.match(currentFieldName; parser.getDeprecationHandler())) {
boost = parser.floatValue();
} else if (END_FIELD.match(currentFieldName; parser.getDeprecationHandler())) {





