meilisearch-rust icon indicating copy to clipboard operation
meilisearch-rust copied to clipboard

Send documents as jsonlines

Open irevoire opened this issue 3 years ago • 3 comments

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.

irevoire avatar Apr 19 '22 13:04 irevoire

I would like to work on this, is this issue still current? Can the meilisearch server already handle requests that send jsonlines?

matthias-wright avatar Jul 13 '22 21:07 matthias-wright

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 👍

irevoire avatar Jul 13 '22 22:07 irevoire