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: packages/client-search/src/searchClient.ts
+9-4Lines changed: 9 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -550,13 +550,14 @@ export function createSearchClient({
550
550
* @param saveObjects - The `saveObjects` object.
551
551
* @param saveObjects.indexName - The `indexName` to save `objects` in.
552
552
* @param saveObjects.objects - The array of `objects` to store in the given Algolia `indexName`.
553
+
* @param saveObjects.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.
553
554
* @param requestOptions - The requestOptions to send along with the query, they will be forwarded to the `batch` method and merged with the transporter requestOptions.
@@ -566,17 +567,19 @@ export function createSearchClient({
566
567
* @param deleteObjects - The `deleteObjects` object.
567
568
* @param deleteObjects.indexName - The `indexName` to delete `objectIDs` from.
568
569
* @param deleteObjects.objectIDs - The objectIDs to delete.
570
+
* @param deleteObjects.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.
569
571
* @param requestOptions - The requestOptions to send along with the query, they will be forwarded to the `batch` method and merged with the transporter requestOptions.
@@ -590,17 +593,19 @@ export function createSearchClient({
590
593
* @param partialUpdateObjects.indexName - The `indexName` to update `objects` in.
591
594
* @param partialUpdateObjects.objects - The array of `objects` to update in the given Algolia `indexName`.
592
595
* @param partialUpdateObjects.createIfNotExists - To be provided if non-existing objects are passed, otherwise, the call will fail..
596
+
* @param partialUpdateObjects.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.
593
597
* @param requestOptions - The requestOptions to send along with the query, they will be forwarded to the `getTask` method and merged with the transporter requestOptions.
0 commit comments