diff --git a/templates/java/api_helpers.mustache b/templates/java/api_helpers.mustache index 86f93b7ea50..7bec8d9667a 100644 --- a/templates/java/api_helpers.mustache +++ b/templates/java/api_helpers.mustache @@ -690,7 +690,7 @@ public List saveObjects(String indexName, Iterable objects * the transporter requestOptions. (optional) */ public List saveObjects(String indexName, Iterable objects, boolean waitForTasks, RequestOptions requestOptions) { - return saveObjects(indexName, objects, false, 1000, requestOptions); + return saveObjects(indexName, objects, waitForTasks, 1000, requestOptions); } /**