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: clients/algoliasearch-client-php/lib/Api/SearchClient.php
+53-20Lines changed: 53 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -2806,11 +2806,12 @@ public function browseSynonyms($indexName, $requestOptions = [])
2806
2806
/**
2807
2807
* Helper: Replace all objects in an index using a temporary one.
2808
2808
*
2809
-
* @param string $indexName Index name
2810
-
* @param array $objects Objects to index
2809
+
* @param string $indexName the `indexName` to replace `objects` in
2810
+
* @param array $objects the array of `objects` to store in the given Algolia `indexName`
2811
+
* @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.
* Helper: Chunks the given `objects` list in subset of 1000 elements max in order to make it fit in `batch` requests.
2849
+
*
2850
+
* @param string $indexName the `indexName` to replace `objects` in
2851
+
* @param array $objects the array of `objects` to store in the given Algolia `indexName`
2852
+
* @param array $action the `batch` `action` to perform on the given array of `objects`, defaults to `addObject`
2853
+
* @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
2854
+
* @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