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

BulkByScrollResponse response = ReindexAction.INSTANCE.newRequestBuilder(client)
    .destination("target_index")
    .filter(QueryBuilders.matchQuery("category", "xzy")) 
    .get();
可选地,可以提供一个查询来筛选从源到目标索引的哪些文档应该被重新编入索引。

猜你喜欢

转载自blog.csdn.net/zhou_shaowei/article/details/80079389