-
Notifications
You must be signed in to change notification settings - Fork 101
Description
We need methods to add and update the documents of MeiliSearch in batch instead of letting the users call addDocuments in a loop.
- Add
addDocumentsInBatches
addDocumentsInBatches(documents, batchSize = 1000, primaryKey = nil)
batchSize and primaryKey are optional parameters
- Add
updateDocumentsInBatches
updateDocumentsInBatches(documents, batchSize = 1000, primaryKey = nil)
batchSize and primaryKey are optional parameters
- Add tests
Example: meilisearch/meilisearch-python#260
addDocumentsInBatches andd updateDocumentsInBatches might be named differently in this package. Keep the already existing way of naming in this package to stay idiomatic with the language and the repository.
Also, if you are a maintainer, feel free to add any clarification and instruction about this issue related to the specific languages of the repo.
Related to meilisearch/integration-guides#106
Sorry if this is already partially/completely implemented, feel free to let me know about the state of this issue in the repo.