meilisearch / meilisearch/meilisearch-php
`SearchQuery` doesn't have `setRetrieveVectors` method
- 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 search call by setting retrieveVectors to true.
https://www.meilisearch.com/docs/reference/api/search#display-vectors-in-response
Expected behavior
Be able to do this
$searchQuery = (new SearchQuery())
->setRetrieveVectors(true);
Current behavior
Method setRetrieveVectors doesn't exist
This is similar to my previous issue #809 that has the option missing for getDocument
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 by locating the SearchQuery class and compare its available methods with the documented retrieveVectors option in the linked API reference. Done means SearchQuery supports the shown setRetrieveVectors(true) usage; check the existing project tests around SearchQuery for the expected coverage.
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
- 30/100