meilisearch / meilisearch/meilisearch-php
[Meilisearch v1.31] Allow `skipCreation` when adding/replacing documents
Open
Nobody has claimed this yet.
enhancement
good first issue
- Dominant language
- PHP
- Stars
- 757
- Forks
- 125
- Avg merge
- 6d 8h
- Merged PRs (30d)
- 2
Description
Description
Meilisearch v1.31.0 introduced a new skipCreation parameter to skip document creationg when using:
We want to update this SDK to allow passing the skipCreation parameter to the relevant API calls:
- POST
/indexes/{index_uid}/documents - PUT
/indexes/{index_uid}/documents
Tasks
- Update documents API methods to accept a boolean to skip creation
- Update test cases for the relevant methods
- Update the examples in .code-samples.meilisearch.yaml under the
add_or_replace_documents_1andadd_or_update_documents_1keys
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 with the documents API methods that issue POST and PUT requests to /indexes/{index_uid}/documents, then inspect their relevant test cases. Update the examples in .code-samples.meilisearch.yaml under add_or_replace_documents_1 and add_or_update_documents_1; done means both methods accept skipCreation and tests and examples cover it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- api
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100