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: lib/src/index.dart
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -62,13 +62,29 @@ abstract class MeiliSearchIndex {
62
62
String? primaryKey,
63
63
});
64
64
65
+
/// Add a list of documents in batches of size [batchSize] by given [documents] and optional [primaryKey] parameter.
66
+
/// If the index does not exist try to create a new index and add documents.
67
+
Future<List<Task>> addDocumentsInBatches(
68
+
List<Map<String, Object?>> documents, {
69
+
int batchSize =1000,
70
+
String? primaryKey,
71
+
});
72
+
65
73
/// Add a list of documents or update them if they already exist by given [documents] and optional [primaryKey] parameter.
66
74
/// If index is not exists tries to create a new index and adds documents.
67
75
Future<Task> updateDocuments(
68
76
List<Map<String, Object?>> documents, {
69
77
String? primaryKey,
70
78
});
71
79
80
+
/// Add a list of documents or update them if they already exist in batches of size [batchSize] by given [documents] and optional [primaryKey] parameter.
81
+
/// If index is not exists tries to create a new index and adds documents.
0 commit comments