meilisearch / meilisearch/meilisearch-php

[Meilisearch v1.31] Allow `skipCreation` when adding/replacing documents

Open
#855 0 comments 0 reactions 0 assignees View on GitHub

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_1 and add_or_update_documents_1 keys

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.