Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get documents with GET can’t use retrieveVectors #707

Open
cnanzhi opened this issue Dec 16, 2024 · 11 comments
Open

Get documents with GET can’t use retrieveVectors #707

cnanzhi opened this issue Dec 16, 2024 · 11 comments
Labels
bug Something isn't working needs more info This issue needs a minimal complete and verifiable example

Comments

@cnanzhi
Copy link

cnanzhi commented Dec 16, 2024

Get documents with GET can’t use retrieveVectors

@norkunas
Copy link
Collaborator

Why can't you use it? What's the error if there is any?

@norkunas norkunas added bug Something isn't working needs more info This issue needs a minimal complete and verifiable example labels Dec 16, 2024
@cnanzhi
Copy link
Author

cnanzhi commented Dec 16, 2024

$query = new DocumentsQuery(); $query->setLimit($limit); $query->setOffset($offset); if(!empty($fields)){ $query->setFields($fields); } if (!empty($filter)){ $query->setFilter($filter); } $query->setRetrieveVectors(true); $result = $this->client->index($index)->getDocuments($query)->toArray();

Hint: It might not be working because maybe you're not up to date with the Meilisearch version that getDocuments call requires.

@cnanzhi
Copy link
Author

cnanzhi commented Dec 16, 2024

If both filter and retrieveVectors=true ,Will prompt an error

@norkunas
Copy link
Collaborator

Again - what error?

@cnanzhi
Copy link
Author

cnanzhi commented Dec 16, 2024

Hint: It might not be working because maybe you're not up to date with the Meilisearch version that getDocuments call requires.

@norkunas
Copy link
Collaborator

Ah sorry, to me this looked like that you got hint from somewhere else. So are you really using latest version of meilisearch service itself?

@cnanzhi
Copy link
Author

cnanzhi commented Dec 16, 2024

Get one document, can not use parameter retrieveVectors ,the SDK does not include the entire parameter

@norkunas
Copy link
Collaborator

@ManyTheFish @curquiza can you help here?

@norkunas norkunas removed the needs more info This issue needs a minimal complete and verifiable example label Dec 16, 2024
@curquiza
Copy link
Member

@cnanzhi please, can you detail

  • which version of Meiliseach you use?
  • which version of the PHP SDK you use?
  • the exact steps you do to trigger the issue?

With this information we will be able to help you

@cnanzhi
Copy link
Author

cnanzhi commented Dec 17, 2024

@cnanzhi please, can you detail

  • which version of Meiliseach you use?
  • which version of the PHP SDK you use?
  • the exact steps you do to trigger the issue?

With this information we will be able to help you

Meilisearch: v1.11.3
PHP SDK: v1.11.0

@curquiza
Copy link
Member

@cnanzhi can you detail the steps you do to trigger the issue?
We need them to identify the bug and fix it

@Strift Strift added the needs more info This issue needs a minimal complete and verifiable example label Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs more info This issue needs a minimal complete and verifiable example
Projects
None yet
Development

No branches or pull requests

4 participants