meilisearch / meilisearch/meilisearch-php

[v1.26] Add tasks custom metadata

Open
#818 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.26 allows attaching custom metadata to document addition or update tasks.

We want to update this SDK's methods for documents addition and update to accept an optional metadata string.

POST /indexes/{indexUid}/documents
PUT /indexes/{indexUid}/documents
DELETE /indexes/{indexUid}/documents/{documentId}
POST /indexes/{indexUid}/documents/delete-batch
POST /indexes/{indexUid}/documents/delete
POST /indexes/{indexUid}/documents/edit
DELETE /indexes/{indexUid}/documents

For more information, read the usage guide.

Tasks

  • Update all methods that interact with the listed API endpoints
  • Add test cases

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 by reviewing the SDK methods that call the seven listed document endpoints and the linked Meilisearch v1.26 usage guide to confirm the optional metadata format. Update each relevant method and add test cases covering metadata handling; done means all listed endpoint methods accept the optional metadata string and the tests pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.