meilisearch / meilisearch/meilisearch-rust

Send documents as jsonlines

Open
#265 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement good first issue
Dominant language
Rust
Stars
434
Forks
114
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in src/request.rs around lines 129-139, where POST and PUT requests are automatically marked as JSON, and trace the document creation and update functions. Done means document requests use JSON Lines while settings requests continue using JSON; verify both request paths against the SDK behavior described in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
api, backend-api-design
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.