版本: 6.8-8.9
简而言之,当在 Elasticsearch 的 [span_not] 查询中使用了不支持的字段时,会出现此错误。[span_not] 查询仅支持 ‘include’、‘exclude’ 和 ‘distances’ 字段。如果您使用任何其他字段,将会抛出此错误。要解决此问题,请确保在 [span_not] 查询中仅使用支持的字段。如果您对字段不确定,请参考 Elasticsearch 文档以了解 [span_not] 查询的正确用法。
日志上下文 #
日志 “[span_not] query does not support [” + currentFieldName + “]” 的类名是 SpanNotQueryBuilder.java。 我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入了解上下文的人使用:
throw new ParsingException(parser.getTokenLocation(); "span_not [exclude] must be of type span query");
}
exclude = (SpanQueryBuilder) query;
checkNoBoost(NAME; currentFieldName; parser; exclude);
} else {
throw new ParsingException(parser.getTokenLocation(); "[span_not] query does not support [" + currentFieldName + "]");
}
} else {
if (DIST_FIELD.match(currentFieldName; parser.getDeprecationHandler())) {
dist = parser.intValue();
} else if (PRE_FIELD.match(currentFieldName; parser.getDeprecationHandler())) {





