Skip to content

Commit 0250262

Browse files
algolia-botmillotp
andcommitted
chore: generated code for commit 07266f22. [skip ci]
algolia/api-clients-automation@07266f2 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent 31db005 commit 0250262

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Sources/Search/Extra/SearchClientExtension.swift

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -502,19 +502,20 @@ public extension SearchClient {
502502
/// `chunkedBatch` helper is used under the hood, which creates a `batch` requests with at most 1000 objects in it.
503503
/// - parameter indexName: The name of the index where to update the objects
504504
/// - parameter objects: The objects to update
505-
/// - parameter createIfNotExist: To be provided if non-existing objects are passed, otherwise, the call will fail..
505+
/// - parameter createIfNotExists: To be provided if non-existing objects are passed, otherwise, the call will
506+
/// fail..
506507
/// - parameter requestOptions: The request options
507508
/// - returns: [BatchResponse]
508509
func partialUpdateObjects(
509510
indexName: String,
510511
objects: [some Encodable],
511-
createIfNotExist: Bool = false,
512+
createIfNotExists: Bool = false,
512513
requestOptions: RequestOptions? = nil
513514
) async throws -> [BatchResponse] {
514515
try await self.chunkedBatch(
515516
indexName: indexName,
516517
objects: objects,
517-
action: createIfNotExist ? .partialUpdateObject : .partialUpdateObjectNoCreate,
518+
action: createIfNotExists ? .partialUpdateObject : .partialUpdateObjectNoCreate,
518519
waitForTasks: false,
519520
batchSize: 1000,
520521
requestOptions: requestOptions
@@ -544,7 +545,7 @@ public extension SearchClient {
544545
operationIndexParams: OperationIndexParams(
545546
operation: .copy,
546547
destination: tmpIndexName,
547-
scope: [.rules, .settings, .synonyms]
548+
scope: [.settings, .rules, .synonyms]
548549
),
549550
requestOptions: requestOptions
550551
)
@@ -563,7 +564,7 @@ public extension SearchClient {
563564
operationIndexParams: OperationIndexParams(
564565
operation: .copy,
565566
destination: tmpIndexName,
566-
scope: [.rules, .settings, .synonyms]
567+
scope: [.settings, .rules, .synonyms]
567568
),
568569
requestOptions: requestOptions
569570
)

0 commit comments

Comments
 (0)