meilisearch / meilisearch/meilisearch-rust
Send documents as jsonlines
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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