Skip to content

Provide a way to forward streams of data to meilisearch #238

@irevoire

Description

@irevoire

Hemlo,

I wanted to use the meilisearch-rust SDK this weekend and found out I was completely stuck because we don't provide any way to send documents that were not generated in our language.
For example, if I have a pipeline generating CSV file that I need to be sent to meilisearch, with the rust SDK, I need to parse the CSV myself to convert it to json and then send it meilisearch which is bad.

I made a PR on meilisearch-rust that adds this possibility, but I was wondering if it's the kind of thing we should provide to all SDKs; what do you think?

imo, we should at least provide a method to add+replace documents and one to add+update documents.
Both methods should take a stream of data with as few constraints on it as possible (the data could come from a file, a web request or anything), and the caller should specify the content type since the callee is not going to look into your data at all.
meilisearch/meilisearch-rust#417

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestneed discussionNeed discussion to make a decision

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions