meilisearch / meilisearch/meilisearch-php
`getDocument` can't use `retrieveVectors`
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 757
- Forks
- 125
- Avg merge
- 6d 8h
- Merged PRs (30d)
- 2
Description
Description
The documentation says you can get the vector data from a single document by passing retrieveVectors as well.
https://www.meilisearch.com/docs/reference/api/documents#get-one-document
Expected behavior
Pass retrieveVectors: true to getDocument and get the vector data
Current behavior
getDocument signature doesn't include retrieveVectors
public function getDocument($documentId, ?array $fields = null)
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/Endpoints/Delegates/HandlesDocuments.php at the getDocument signature shown in the issue, then compare it with the Meilisearch get-one-document documentation. The work is done when getDocument accepts retrieveVectors as documented and returns the requested vector data.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- api
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100