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

[Feature]: The result of search, order by scalar field. #33295

Open
1 task done
zhoujiaqi1998 opened this issue May 23, 2024 · 3 comments
Open
1 task done

[Feature]: The result of search, order by scalar field. #33295

zhoujiaqi1998 opened this issue May 23, 2024 · 3 comments
Assignees
Labels
kind/feature Issues related to feature request from users

Comments

@zhoujiaqi1998
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe.

#33269
Create a vector for the count field, for example [count, 0]. Then search for the farthest verters and sort them based on similarity, but distance it is already overflowed。

Describe the solution you'd like.

example1:
search(vectors_to_search, "embeddings", search_params, limit=3000, output_fields=["embeddings","count"],expr="order by count")
example2:
select embeddings, count from table order by count

Describe an alternate solution.

No response

Anything else? (Additional Context)

No response

@zhoujiaqi1998 zhoujiaqi1998 added the kind/feature Issues related to feature request from users label May 23, 2024
@xiaofan-luan
Copy link
Contributor

how why do need to put count in a vector field?
does't seems to make sense?

@zhoujiaqi1998
Copy link
Author

how why do need to put count in a vector field? does't seems to make sense?

为什么要在向量场中加入计数呢? 似乎说不通?

search vector, Then order by count, but it seems that milvus does not have the ability to sort scalars.
So,create a count in a vector field and sort it by similarity.

@zhoujiaqi1998
Copy link
Author

I need the ability to specify scalar field sort.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Issues related to feature request from users
Projects
None yet
Development

No branches or pull requests

2 participants