ElasticSearch Java API:索引操作

2021-07-26 11:05:36 浏览数 (1)

查询全部索引:

代码语言:javascript复制
GetAliasesRequest request = new GetAliasesRequest();
GetAliasesResponse getAliasesResponse =  restHighLevelClient.indices().getAlias(request,RequestOptions.DEFAULT);
Map<String, Set<AliasMetaData>> map = getAliasesResponse.getAliases();
Set<String> indices = map.keySet();

0 人点赞