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

版本: 6.8-8.5

简而言之,当 Elasticsearch 由于过滤器配置不正确或缺少插件而无法初始化过滤器时,会出现此错误。过滤器可能在 Elasticsearch 查询中定义不正确,或者过滤器所需的插件可能未安装。要解决此问题,您可以检查查询中的过滤器配置并确保其定义正确。此外,确保已安装过滤器所需的所有必要插件。如果错误仍然存在,请检查 Elasticsearch 日志以获取更详细的错误信息。

日志上下文 #

日志 “Failed to initialse filter” 的类名是 FilterAggregatorFactory.java。 我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入上下文的人使用:

if (weight == null) {
 IndexSearcher contextSearcher = context.searcher();
 try {
 weight = contextSearcher.createWeight(contextSearcher.rewrite(filter); ScoreMode.COMPLETE_NO_SCORES; 1f);
 } catch (IOException e) {
 throw new AggregationInitializationException("Failed to initialse filter"; e);
 }
 }
 return weight;
 }