File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 9
9
import Core
10
10
#endif
11
11
import Foundation
12
- import enum Search. Action
13
12
14
13
public extension SearchClient {
15
14
/// Wait for a task to complete
@@ -427,7 +426,7 @@ public extension SearchClient {
427
426
func chunkedBatch(
428
427
indexName: String ,
429
428
objects: [ some Encodable ] ,
430
- action: Action = . addObject,
429
+ action: SearchAction = . addObject,
431
430
waitForTasks: Bool = false ,
432
431
batchSize: Int = 1000 ,
433
432
requestOptions: RequestOptions ? = nil
@@ -440,7 +439,7 @@ public extension SearchClient {
440
439
for batch in batches {
441
440
let batchResponse = try await self . batch (
442
441
indexName: indexName,
443
- batchWriteParams: BatchWriteParams (
442
+ batchWriteParams: SearchBatchWriteParams (
444
443
requests: batch. map {
445
444
. init( action: action, body: AnyCodable ( $0) )
446
445
}
You can’t perform that action at this time.
0 commit comments