completeListener = new OperationBatch(0, toIndex, toDelete);
operationBatchList.add(completeListener);
try {
bulkRequestBuilder.execute().addListener(completeListener);
} catch (Exception e) {
throw new IndexException("Failed to index/delete " + bulkRequestBuilder.numberOfActions(), e);
}
}
}
return completeListener;