Skip to content

Commit 3797ee9

Browse files
committed
php
1 parent 173a3a1 commit 3797ee9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

templates/php/api.mustache

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ use Algolia\AlgoliaSearch\Exceptions\NotFoundException;
434434
* @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.
435435
* @param array $requestOptions Request options
436436
*/
437-
public function replaceAllObjects($indexName, $objects, $batchSize = 1000, $requestOptions = [])
437+
public function replaceAllObjects($indexName, $objects, $batchSize = 1000, $scopes = ['settings', 'rules', 'synonyms'], $requestOptions = [])
438438
{
439439
$tmpIndexName = $indexName.'_tmp_'.rand(10000000, 99999999);
440440
@@ -444,7 +444,7 @@ use Algolia\AlgoliaSearch\Exceptions\NotFoundException;
444444
[
445445
'operation' => 'copy',
446446
'destination' => $tmpIndexName,
447-
'scope' => ['settings', 'rules', 'synonyms'],
447+
'scope' => $scopes,
448448
],
449449
$requestOptions
450450
);
@@ -458,7 +458,7 @@ use Algolia\AlgoliaSearch\Exceptions\NotFoundException;
458458
[
459459
'operation' => 'copy',
460460
'destination' => $tmpIndexName,
461-
'scope' => ['settings', 'rules', 'synonyms'],
461+
'scope' => $scopes,
462462
],
463463
$requestOptions
464464
);

0 commit comments

Comments
 (0)