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
/// Add a list of documents by given [documents] and optional [primaryKey] parameter.
59
-
/// If index is not exists tries to create a new index and adds documents.
60
+
/// {@endtemplate}
61
+
///
62
+
/// {@template meili.index_upsert}
63
+
/// If the index does not exist, tries to create a new index and adds documents.
64
+
/// {@endtemplate}
60
65
Future<Task> addDocuments(
61
66
List<Map<String, Object?>> documents, {
62
67
String? primaryKey,
63
68
});
64
69
70
+
/// {@macro meili.add_docs}
71
+
///
72
+
/// * The passed [documents] must be a valid JSON string representing an array of objects.
73
+
/// *
74
+
/// {@macro meili.index_upsert}
75
+
Future<Task> addDocumentsJson(
76
+
String documents, {
77
+
String? primaryKey,
78
+
});
79
+
80
+
/// {@macro meili.add_docs}
81
+
///
82
+
/// *
83
+
/// {@template meili.csv}
84
+
/// The passed documents must be a valid CSV string, where the first line contains objects' keys and types, and each subsequent line corresponds to an object.
/// * The passed [documents] must be a valid Newline Delimited Json (NdJson) string, where each line corresponds to an object.
98
+
/// *
99
+
/// {@macro meili.index_upsert}
100
+
Future<Task> addDocumentsNdjson(
101
+
String documents, {
102
+
String? primaryKey,
103
+
});
104
+
105
+
/// {@template meili.add_docs_batches}
65
106
/// 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.
107
+
/// {@endtemplate}
108
+
///
109
+
/// {@macro meili.index_upsert}
67
110
Future<List<Task>> addDocumentsInBatches(
68
111
List<Map<String, Object?>> documents, {
69
112
int batchSize =1000,
70
113
String? primaryKey,
71
114
});
72
115
116
+
/// {@macro meili.add_docs_batches}
117
+
///
118
+
/// *
119
+
/// {@macro meili.csv}
120
+
/// *
121
+
/// {@macro meili.index_upsert}
122
+
Future<List<Task>> addDocumentsCsvInBatches(
123
+
String documents, {
124
+
String? primaryKey,
125
+
int batchSize =1000,
126
+
});
127
+
128
+
/// {@macro meili.add_docs_batches}
129
+
///
130
+
/// * The passed [documents] must be a valid Newline Delimited Json (NdJson) string, where each line corresponds to an object.
131
+
/// *
132
+
/// {@macro meili.index_upsert}
133
+
Future<List<Task>> addDocumentsNdjsonInBatches(
134
+
String documents, {
135
+
String? primaryKey,
136
+
int batchSize =1000,
137
+
});
138
+
139
+
/// {@template meili.update_docs}
73
140
/// Add a list of documents or update them if they already exist by given [documents] and optional [primaryKey] parameter.
74
-
/// If index is not exists tries to create a new index and adds documents.
141
+
/// {@endtemplate}
142
+
///
143
+
/// {@macro meili.index_upsert}
75
144
Future<Task> updateDocuments(
76
145
List<Map<String, Object?>> documents, {
77
146
String? primaryKey,
78
147
});
79
148
149
+
/// {@macro meili.update_docs}
150
+
///
151
+
/// * the passed [documents] must be a valid JSON string representing an array of objects.
152
+
/// *
153
+
/// {@macro meili.index_upsert}
154
+
Future<Task> updateDocumentsJson(
155
+
String documents, {
156
+
String? primaryKey,
157
+
});
158
+
159
+
/// {@macro meili.update_docs}
160
+
///
161
+
/// * The passed [documents] must be a valid Newline Delimited Json (NdJson) string, where each line corresponds to an object.
162
+
/// *
163
+
/// {@macro meili.index_upsert}
164
+
Future<Task> updateDocumentsNdjson(
165
+
String documents, {
166
+
String? primaryKey,
167
+
});
168
+
169
+
/// {@macro meili.update_docs}
170
+
///
171
+
/// *
172
+
/// {@macro meili.csv}
173
+
/// *
174
+
/// {@macro meili.index_upsert}
175
+
Future<Task> updateDocumentsCsv(
176
+
String documents, {
177
+
String? primaryKey,
178
+
});
179
+
180
+
/// {@template meili.update_docs_batches}
80
181
/// 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.
182
+
/// {@endtemplate}
183
+
///
184
+
/// {@macro meili.index_upsert}
82
185
Future<List<Task>> updateDocumentsInBatches(
83
186
List<Map<String, Object?>> documents, {
84
187
int batchSize =1000,
85
188
String? primaryKey,
86
189
});
87
190
191
+
/// {@macro meili.update_docs_batches}
192
+
///
193
+
/// * The passed [documents] must be a valid CSV string, where each line corresponds to an object.
194
+
/// *
195
+
/// {@macro meili.index_upsert}
196
+
Future<List<Task>> updateDocumentsCsvInBatches(
197
+
String documents, {
198
+
String? primaryKey,
199
+
int batchSize =1000,
200
+
});
201
+
202
+
/// {@macro meili.update_docs_batches}
203
+
///
204
+
/// * The passed [documents] must be a valid Newline Delimited Json (NdJson) string, where each line corresponds to an object.
0 commit comments