if(actionCount != 0 && (actionCount > bulkSize || force == true)){
try{
if(logger.isDebugEnabled()) logger.debug("Executing bulk request: actionCount={} bulkSize={} force={}", actionCount, bulkSize, force);
BulkResponse response = currentRequest.execute().actionGet();
if(response.hasFailures()){
logger.error("failed to execute" + response.buildFailureMessage());
}
} catch(Exception e) {
logger.error("Failed to process bulk", e);
}
currentRequest = client.prepareBulk();