Re-index with java api (ES 5.1.2)

Hi,

I have 2 indices: index_old and index_new.
I want to re-index all the data from index_old to index_new, and after that I want to delete index_old.
I'm not sure if by the time I get the response from the re-index request, all the data has been re-indexed and I can safely delete index_old.

the code I'm using is:

ActionResponse response = ReindexAction.INSTANCE.newRequestBuilder(client). source(index_old).destination(index_new).get();

Can someone help?
Thanks!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.