1. 首页
  2. 数据库
  3. 其它
  4. RestHighLevelClient判断index是否存在

RestHighLevelClient判断index是否存在

上传者: 2021-01-16 18:55:25上传 PDF文件 19.79KB 热度 280次
判断Index是否存在版本以6.4.2为准,6.2.1api不一样 public boolean indexExists(String indexName) { GetIndexRequest request = new GetIndexRequest(); request.indices(indexName); try { return rhlClient.indices().exists(request, RequestOptions.DEFAULT);
下载地址
用户评论