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
@@ -351,7 +351,7 @@ public suspend fun SearchClient.chunkedBatch(
351
351
*
352
352
* @param indexName The index in which to perform the request.
353
353
* @param objects The list of objects to index.
354
-
* @param waitForTask If true, wait for the task to complete.
354
+
* @param waitForTasks If true, wait for the task to complete.
355
355
* @param batchSize The size of the batch. Default is 1000.
356
356
* @param requestOptions The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
357
357
* @return The list of responses from the batch requests.
@@ -360,24 +360,24 @@ public suspend fun SearchClient.chunkedBatch(
360
360
publicsuspendfun SearchClient.saveObjects(
361
361
indexName:String,
362
362
objects:List<JsonObject>,
363
-
waitForTask:Boolean = false,
363
+
waitForTasks:Boolean = false,
364
364
batchSize:Int = 1000,
365
365
requestOptions:RequestOptions? = null,
366
366
): List<BatchResponse> =this.chunkedBatch(
367
367
indexName = indexName,
368
368
objects = objects,
369
369
action =Action.AddObject,
370
-
waitForTask=waitForTask,
370
+
waitForTasks=waitForTasks,
371
371
batchSize = batchSize,
372
372
requestOptions = requestOptions,
373
373
)
374
374
375
375
/**
376
-
* Helper: Deletes every records for the given objectIDs. The `chunkedBatch` helper is used under the hood, which creates a `batch` requests with at most 1000 objectIDs in it.
376
+
* Helper: Deletes every record for the given objectIDs. The `chunkedBatch` helper is used under the hood, which creates a `batch` requests with at most 1000 objectIDs in it.
377
377
*
378
378
* @param indexName The index in which to perform the request.
379
379
* @param objectIDs The list of objectIDs to delete from the index.
380
-
* @param waitForTask If true, wait for the task to complete.
380
+
* @param waitForTasks If true, wait for the task to complete.
381
381
* @param batchSize The size of the batch. Default is 1000.
382
382
* @param requestOptions The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
383
383
* @return The list of responses from the batch requests.
@@ -386,14 +386,14 @@ public suspend fun SearchClient.saveObjects(
386
386
publicsuspendfun SearchClient.deleteObjects(
387
387
indexName:String,
388
388
objectIDs:List<String>,
389
-
waitForTask:Boolean = false,
389
+
waitForTasks:Boolean = false,
390
390
batchSize:Int = 1000,
391
391
requestOptions:RequestOptions? = null,
392
392
): List<BatchResponse> =this.chunkedBatch(
393
393
indexName = indexName,
394
394
objects = objectIDs.map { id ->JsonObject(mapOf("objectID" to Json.encodeToJsonElement(id))) },
395
395
action =Action.DeleteObject,
396
-
waitForTask=waitForTask,
396
+
waitForTasks=waitForTasks,
397
397
batchSize = batchSize,
398
398
requestOptions = requestOptions,
399
399
)
@@ -404,7 +404,7 @@ public suspend fun SearchClient.deleteObjects(
404
404
* @param indexName The index in which to perform the request.
405
405
* @param objects The list of objects to update in the index.
406
406
* @param createIfNotExists To be provided if non-existing objects are passed, otherwise, the call will fail..
407
-
* @param waitForTask If true, wait for the task to complete.
407
+
* @param waitForTasks If true, wait for the task to complete.
408
408
* @param batchSize The size of the batch. Default is 1000.
409
409
* @param requestOptions The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
410
410
* @return The list of responses from the batch requests.
@@ -414,14 +414,14 @@ public suspend fun SearchClient.partialUpdateObjects(
0 commit comments