Hi, does Milvus support querying directly by alias name instead of collection name? Thanks #39314
Answered
by
yhmo
gjwei
asked this question in
Q&A and General discussion
-
Because the business needs to update the entire vector library every ten minutes. |
Beta Was this translation helpful? Give feedback.
Answered by
yhmo
Jan 16, 2025
Replies: 1 comment 1 reply
-
Yes, alias can be used as a collection name. Let's say there is a collection named "AAA"
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
gjwei
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, alias can be used as a collection name.
Let's say there is a collection named "AAA"
create an alias for this collection
milvus_client.create_alias("AAA", "abcd")
query by alias, the query is applied to "AAA"
milvus_client.query("abcd")
create another collection "BBB"
milvus_client.create_collection("BBB")
assign the alias to "BBB"
milvus_client.alter_alias("BBB", "abcd")
query by alias, the query is applied to "BBB"
milvus_client.query("abcd")