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

版本: 8.9-8.9

简而言之,当Elasticsearch尝试访问数据库中不存在的索引时会发生此错误。这可能是由于索引名称拼写错误,或者索引已被删除。要解决此问题,您可以检查索引名称是否存在拼写错误或大小写敏感性问题。如果索引已被删除,您可以重新创建它。或者,您可以使用Elasticsearch API列出所有可用的索引,以确保您尝试访问的索引确实存在。

日志上下文 #

日志"Index [{}] does not exist. Returning empty response.“的类名是 TransportGetProfilingAction.java。我们从Elasticsearch源代码中提取了以下内容,供寻求深入上下文的人员参考;

submitListener.onResponse(responseBuilder.build());
 }
 }; e -> {
 // Data streams are created lazily; if even the "full" index does not exist no data have been indexed yet.
 if (e instanceof IndexNotFoundException) {
 log.debug("Index [{}] does not exist. Returning empty response."; ((IndexNotFoundException) e).getIndex());
 submitListener.onResponse(responseBuilder.build());
 } else {
 submitListener.onFailure(e);
 }
 }));