Send documents as jsonlines
irevoire opened this issue · 3 comments
irevoire commented
Description
All the functions that create or update documents should send jsonlines instead of a JSON array.
Why
That's faster to process by meilisearch and consumes less memory.
How
Currently, the issue is that when we send a POST or PUT request in the SDK, it's automatically flagged as JSON.
We need to update our internal to support JSON for the settings and jsonlines for the documents.
matthias-wright commented
I would like to work on this, is this issue still current?
Can the meilisearch server already handle requests that send jsonlines?
irevoire commented
Hey @matthias-wright, yes thanks for your interest, this hasn't been implemented.
Meilisearch can handle jsonlines IF you set the good content-type and only on the POST and PUT route 👍