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: templates/php/api.mustache
+11-8Lines changed: 11 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -503,9 +503,10 @@ use {{invokerPackage}}\Support\Helpers;
503
503
* @param string $indexName The `indexName` to replace `objects` in.
504
504
* @param array $objects The array of `objects` to store in the given Algolia `indexName`.
505
505
* @param array $requestOptions Request options
506
+
* @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
506
507
*/
507
-
public function saveObjects($indexName, $objects, $requestOptions = []) {
@@ -514,16 +515,17 @@ use {{invokerPackage}}\Support\Helpers;
514
515
* @param string $indexName The `indexName` to delete `objectIDs` from.
515
516
* @param array $objectIDs The `objectIDs` to delete.
516
517
* @param array $requestOptions Request options
518
+
* @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
517
519
*/
518
-
public function deleteObjects($indexName, $objectIDs, $requestOptions = [])
520
+
public function deleteObjects($indexName, $objectIDs, $requestOptions = [], $waitForTasks = false)
@@ -532,10 +534,11 @@ use {{invokerPackage}}\Support\Helpers;
532
534
* @param string $indexName The `indexName` to replace `objects` in.
533
535
* @param array $objects The array of `objects` to store in the given Algolia `indexName`.
534
536
* @param bool $createIfNotExists To be provided if non-existing objects are passed, otherwise, the call will fail..
535
-
* @param array $requestOptions Request options
537
+
* @param array $requestOptions Request options
538
+
* @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
536
539
*/
537
-
public function partialUpdateObjects($indexName, $objects, $createIfNotExists, $requestOptions = []) {
@@ -544,7 +547,7 @@ use {{invokerPackage}}\Support\Helpers;
544
547
* @param string $indexName the `indexName` to replace `objects` in
545
548
* @param array $objects the array of `objects` to store in the given Algolia `indexName`
546
549
* @param array $action the `batch` `action` to perform on the given array of `objects`, defaults to `addObject`
547
-
* @param array $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
550
+
* @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
548
551
* @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.
0 commit comments