Kratos

A responsible theme for WordPress

ElasticSearch6.X版本Java Api中文详解(八)之Reindex API解析

《ElasticSearch6.X版本Java Api中文详解(八)之Reindex API解析》

BulkByScrollResponse response = ReindexAction.INSTANCE.newRequestBuilder(client)
 .destination("target_index")
    .filter(QueryBuilders.matchQuery("category", "xzy")) 
    .get();

可选地,可以提供一个查询来筛选从源到目标索引的哪些文档应该被重新编入索引。

点赞

发表评论

电子邮件地址不会被公开。 必填项已用*标注