clusterhealthresponse在ElasticSearch6.8中没有返回所有索引

qoefvg9y  于 2021-06-13  发布在  ElasticSearch
关注(0)|答案(0)|浏览(202)

下面的代码没有重新调整keyset中的索引,并且返回为null。任何人都知道如何更正它。我正在尝试从ElasticSearch中获取所有索引。

ClusterHealthRequest request = new ClusterHealthRequest();
    ClusterHealthResponse response = client.cluster().health(request, RequestOptions.DEFAULT);
    Set<String> indices = response.getIndices().keySet();

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题