What is the proper way to search all partitions when enabling partition key isolation? #40255
-
I tried to set filter to "", and got the following error: "<MilvusException: (code=65535, message=partition key not found in expr or the expr is invalid when validating partition key isolation)>" |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
No problem on milvus v2.5.4
This script can return 3 results successfully. |
Beta Was this translation helpful? Give feedback.
-
partition key isolation is designed for multi-tenancy scenario, it is restricted to specific partition key scope and not allowed to search across the whole collection, which is described in doc https://milvus.io/docs/use-partition-key.md#Use-Partition-Key-Isolation. So what is your usecase to use partition key isolation? @guzy0324 |
Beta Was this translation helpful? Give feedback.
I just read the source code. It seems with partition key isolation enabled, you must input a partition key in the expression, or it throws this error:
milvus/internal/util/exprutil/expr_checker.go
Line 519 in bc8e02d
I didn't find a workaround to search the entire collection. It may be a bug of feature design.