You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Helper: Saves the given array of objects in the given index. The `chunkedBatch` helper is used under the hood, which creates a `batch` requests with at most 1000 objects in it.
649
+
*
650
+
* @param indexName The `indexName` to replace `objects` in.
651
+
* @param objects The array of `objects` to store in the given Algolia `indexName`.
652
+
* @param waitForTasks - Whether or not we should wait until every `batch` tasks has been processed, this operation may slow the total execution time of this method but is more reliable.
653
+
* @param requestOptions The requestOptions to send along with the query, they will be merged with the transporter requestOptions. (optional)
* Helper: Deletes every records for the given objectIDs. The `chunkedBatch` helper is used under the hood, which creates a `batch` requests with at most 1000 objectIDs in it.
694
+
*
695
+
* @param indexName The `indexName` to delete `objectIDs` from.
696
+
* @param objectIDs The array of `objectIDs` to delete from the `indexName`.
697
+
* @param waitForTasks - Whether or not we should wait until every `batch` tasks has been processed, this operation may slow the total execution time of this method but is more reliable.
698
+
* @param requestOptions The requestOptions to send along with the query, they will be merged with the transporter requestOptions. (optional)
699
+
*/
700
+
public List<BatchResponse> deleteObjects(
701
+
String indexName,
702
+
List<String> objectIDs,
703
+
boolean waitForTasks,
704
+
RequestOptions requestOptions
705
+
) {
672
706
List<Map<String, String>> objects = new ArrayList<>();
0 commit comments