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

版本: 7.2-8.9

简而言之,当Elasticsearch尝试执行汇总搜索但未找到任何索引(无论是实时索引还是汇总索引)时,就会发生此错误。这可能是由于索引名称不正确、索引已被删除或权限不足造成的。要解决此问题,请确保索引名称正确且它们存在于您的Elasticsearch集群中。此外,检查用户是否有访问索引的必要权限。如果索引已被删除,您可能需要重新创建它们或从备份中恢复。

日志上下文 #

日志"No indices (live or rollup) found during rollup search"的类名是 RollupResponseTranslator.java 我们从Elasticsearch源代码中提取了以下内容,为那些寻求深入上下文的人提供参考:

    // If we only have a live index left; just return it directly. We know it can't be an error already
    if (rolledResponses.isEmpty() && liveResponse != null) {
        return liveResponse;
    } else if (rolledResponses.isEmpty()) {
        throw new ResourceNotFoundException("No indices (live or rollup) found during rollup search");
    }  return doCombineResponse(liveResponse, rolledResponses, reduceContextBuilder);
    }