且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

弹性搜索失败,错误“无法执行阶段[query_fetch],所有分片失败”

更新时间:2022-04-06 08:32:59

Client client = node.client();

我感到Elasticsearch没有恢复分片,然后才能达到搜索请求。
即使管理员呼叫等待黄色也适用于您

I feel Elasticsearch haven't recovered the shards before you have hit the search request. Even the admin call to "wait for yellow" should work for you