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

Allow to include payload and vector into search result #50

Closed
generall opened this issue Jul 2, 2021 · 2 comments
Closed

Allow to include payload and vector into search result #50

generall opened this issue Jul 2, 2021 · 2 comments
Labels
to be released Ready to be released issue

Comments

@generall
Copy link
Member

generall commented Jul 2, 2021

Is your feature request related to a problem? Please describe.
Right now search API can only return Id + score. If application requires payload or vector as well, it should make another retrieve call.

Describe the solution you'd like
Introduce with_payload and with_vector flags to search API, which should work similar to retrieve. If with_payload=true, the result should also include payload of the found points. If with_vector=true - vector should also be included.
The flags should be included in either GET or POST parameters ( I would prefer POST) and should be optional for backward compatibility.

Describe alternatives you've considered
Alternative approach for with_payload would be a possibility to specify the exact list of required payload keys. Similar to projection in Mongo, or _source in elastic.

@generall generall added the enhancement New feature or request label Jul 2, 2021
@haicheviet haicheviet mentioned this issue Sep 29, 2021
5 tasks
@generall
Copy link
Member Author

Payload retrieve released in https://github.com/qdrant/qdrant/releases/tag/v0.4.1 Vector retrieve - TBD

@generall generall added the good first issue Good for newcomers label Dec 26, 2021
daniilsunyaev added a commit to daniilsunyaev/qdrant that referenced this issue Jan 3, 2022
allow to specify 'with_vector' parameter in search api to get search results vector data
daniilsunyaev added a commit to daniilsunyaev/qdrant that referenced this issue Jan 3, 2022
daniilsunyaev added a commit to daniilsunyaev/qdrant that referenced this issue Jan 3, 2022
daniilsunyaev added a commit to daniilsunyaev/qdrant that referenced this issue Jan 3, 2022
run tools/generate_openapi_models.sh
generall pushed a commit that referenced this issue Jan 3, 2022
* feat(#50): include vector into search result

allow to specify 'with_vector' parameter in search api to get search results vector data

* test(#50): fix tests

* chore(#50): apply cargo fmt

* chore(#50): update api docs

run tools/generate_openapi_models.sh

Co-authored-by: Daniil Sunyaev <dasforrum@gmail.com>
@generall generall added to be released Ready to be released issue and removed enhancement New feature or request good first issue Good for newcomers labels Jan 18, 2022
generall added a commit that referenced this issue Jan 30, 2022
generall added a commit that referenced this issue Jan 31, 2022
* enable `with_vector` flag in api #50

* fix readme
@generall
Copy link
Member Author

generall commented Feb 3, 2022

@generall generall closed this as completed Feb 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
to be released Ready to be released issue
Projects
None yet
Development

No branches or pull requests

1 participant