meilisearch / meilisearch/meilisearch-php

`SearchQuery` doesn't have `setRetrieveVectors` method

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

@bpolaszek is already working on this.

Since Nov 15, 2025.

  • #817 by @bpolaszek — open
enhancement good first issue
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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.