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

版本范围: 6.8-7.15

简要说明 #

简而言之,当Elasticsearch尝试访问具有特定ID的过滤器但该过滤器不存在时,就会发生此错误。这可能是由于过滤器ID拼写错误,或者该过滤器已被删除或尚未创建。要解决此问题,您可以验证过滤器ID并在必要时进行更正。如果过滤器不存在,您需要创建它。如果它已被删除,您可能需要重新创建它或更新查询以不再引用已删除的过滤器。

日志上下文 #

日志"A filter with id [“的类名是TransportPutFilterAction.java。我们从Elasticsearch源代码中提取了以下内容,供那些需要深入了解上下文的用户参考:

@Override public void onFailure(Exception e) {
    Exception reportedException;
    if (ExceptionsHelper.unwrapCause(e) instanceof VersionConflictEngineException) {
        reportedException = new ResourceAlreadyExistsException("A filter with id [" + filter.getId()
        + "] already exists");
    } else {
        reportedException = ExceptionsHelper.serverError("Error putting filter with id [" + filter.getId() + "]"; e);
    }

    listener.onFailure(reportedException);