
从Elasticsearch 7.5.0开始,您可以使用以下方法检索所有索引:
GetIndexRequest request = new GetIndexRequest("*"); GetIndexResponse response = client.indices().get(request, RequestOptions.DEFAULT); String[] indices = response.getIndices();欢迎分享,转载请注明来源:内存溢出

从Elasticsearch 7.5.0开始,您可以使用以下方法检索所有索引:
GetIndexRequest request = new GetIndexRequest("*"); GetIndexResponse response = client.indices().get(request, RequestOptions.DEFAULT); String[] indices = response.getIndices();欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)