request.setConsistencyLevel(WriteConsistencyLevel.ONE);
request.setReplicationType(ReplicationType.ASYNC);
if (request.numberOfActions() > 0) {
BulkResponse response = c.bulk(request.request()).actionGet();
LOG.info("Moving index <{}> to <{}>: Bulk indexed {} messages, took {} ms, failures: {}",
source, target, response.getItems().length, response.getTookInMillis(), response.hasFailures());
if (response.hasFailures()) {