Skip to content

Hi, does Milvus support querying directly by alias name instead of collection name? Thanks #39314

Discussion options

You must be logged in to vote

Yes, alias can be used as a collection name.

Let's say there is a collection named "AAA"

  1. create an alias for this collection
    milvus_client.create_alias("AAA", "abcd")

  2. query by alias, the query is applied to "AAA"
    milvus_client.query("abcd")

  3. create another collection "BBB"
    milvus_client.create_collection("BBB")

  4. assign the alias to "BBB"
    milvus_client.alter_alias("BBB", "abcd")

  5. query by alias, the query is applied to "BBB"
    milvus_client.query("abcd")

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gjwei
Comment options

Answer selected by gjwei
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants