Skip to content

Add methods to automatically add/update documents in batches #225

@curquiza

Description

@curquiza

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

⚠️ This issue is generated, it means 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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions