meilisearch-php icon indicating copy to clipboard operation
meilisearch-php copied to clipboard

`getDocument` can't use `retrieveVectors`

Open tognee opened this issue 2 months ago • 0 comments

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)

https://github.com/meilisearch/meilisearch-php/blob/main/src/Endpoints/Delegates/HandlesDocuments.php#L15C5-L15C68

tognee avatar Oct 21 '25 15:10 tognee