See reindex API.
BulkByScrollResponse response = ReindexAction.INSTANCE.newRequestBuilder(client) .destination("target_index") .filter(QueryBuilders.matchQuery("category", "xzy")) .get();
Optionally a query can provided to filter what documents should be re-indexed from the source to the target index.
Most Popular
Video
Get Started with Elasticsearch
Intro to Kibana
ELK for Logs & Metrics