protected UpdateRequest buildUpdateRequest(ESUpdateNode node) {
UpdateRequest request = new UpdateRequest(node.indices()[0],
Constants.DEFAULT_MAPPING_TYPE, node.ids().get(0));
request.fields(node.columns());
request.paths(node.updateDoc());
if (node.version().isPresent()) {
request.version(node.version().get());
} else {
request.retryOnConflict(Constants.UPDATE_RETRY_ON_CONFLICT);
}