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
Copy file name to clipboardExpand all lines: lib/Api/SearchClient.php
+9-6Lines changed: 9 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -2945,31 +2945,33 @@ public function replaceAllObjects($indexName, $objects, $batchSize = 1000, $requ
2945
2945
*
2946
2946
* @param string $indexName the `indexName` to replace `objects` in
2947
2947
* @param array $objects the array of `objects` to store in the given Algolia `indexName`
2948
+
* @param array $batchSize The size of the chunk of `objects`. The number of `batch` calls will be equal to `length(objects) / batchSize`. Defaults to 1000.
2948
2949
* @param array $requestOptions Request options
2949
2950
* @param bool $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
* 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.
2958
2959
*
2959
2960
* @param string $indexName the `indexName` to delete `objectIDs` from
2960
2961
* @param array $objectIDs the `objectIDs` to delete
2962
+
* @param array $batchSize The size of the chunk of `objects`. The number of `batch` calls will be equal to `length(objects) / batchSize`. Defaults to 1000.
2961
2963
* @param array $requestOptions Request options
2962
2964
* @param bool $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
@@ -2978,12 +2980,13 @@ public function deleteObjects($indexName, $objectIDs, $requestOptions = [], $wai
2978
2980
* @param string $indexName the `indexName` to replace `objects` in
2979
2981
* @param array $objects the array of `objects` to store in the given Algolia `indexName`
2980
2982
* @param bool $createIfNotExists To be provided if non-existing objects are passed, otherwise, the call will fail..
2983
+
* @param array $batchSize The size of the chunk of `objects`. The number of `batch` calls will be equal to `length(objects) / batchSize`. Defaults to 1000.
2981
2984
* @param array $requestOptions Request options
2982
2985
* @param bool $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
0 commit comments