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
+6-5Lines changed: 6 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -505,11 +505,12 @@ use Algolia\AlgoliaSearch\Exceptions\NotFoundException;
505
505
*
506
506
* @param string $indexName The `indexName` to replace `objects` in.
507
507
* @param array $objects The array of `objects` to store in the given Algolia `indexName`.
508
+
* @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
508
509
* @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.
509
510
* @param array $requestOptions Request options
510
-
* @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
511
511
*/
512
512
public function saveObjects($indexName, $objects, $waitForTasks = false, $batchSize = 1000, $requestOptions = [])
@@ -518,11 +519,11 @@ use Algolia\AlgoliaSearch\Exceptions\NotFoundException;
518
519
*
519
520
* @param string $indexName The `indexName` to delete `objectIDs` from.
520
521
* @param array $objectIDs The `objectIDs` to delete.
522
+
* @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
521
523
* @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.
522
524
* @param array $requestOptions Request options
523
-
* @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
524
525
*/
525
-
public function deleteObjects($indexName, $objectIDs, $batchSize = 1000, $requestOptions = [], $waitForTasks = false)
526
+
public function deleteObjects($indexName, $objectIDs, $waitForTasks = false, $batchSize = 1000, $requestOptions = [])
526
527
{
527
528
$objects = [];
528
529
@@ -539,11 +540,11 @@ use Algolia\AlgoliaSearch\Exceptions\NotFoundException;
539
540
* @param string $indexName The `indexName` to replace `objects` in.
540
541
* @param array $objects The array of `objects` to store in the given Algolia `indexName`.
541
542
* @param bool $createIfNotExists To be provided if non-existing objects are passed, otherwise, the call will fail..
543
+
* @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
542
544
* @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.
543
545
* @param array $requestOptions Request options
544
-
* @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
545
546
*/
546
-
public function partialUpdateObjects($indexName, $objects, $createIfNotExists, $batchSize = 1000, $requestOptions = [], $waitForTasks = false) {
547
+
public function partialUpdateObjects($indexName, $objects, $createIfNotExists, $waitForTasks = false, $batchSize = 1000, $requestOptions = []) {
0 commit comments