Advanced Filtering on Array Fields in Milvus Lite gives "Invalid expr" error #35279
-
I am using pymilvus version: 2.4.4 When trying to re-produce the code in documentations for advanced filtering on array fields https://milvus.io/docs/array_data_type.md#Advanced-filtering:
It gives the following error:
So, how to perform this operation correctly? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
ARRAY_CONTAINS_ANY is parsed in server side. It requires the milvus server version greater or equal than v2.3.2. Double check your milvus server version. |
Beta Was this translation helpful? Give feedback.
-
@junjiejiangjjj |
Beta Was this translation helpful? Give feedback.
-
Array-related operations are supported in milvus-lite 2.4.12 |
Beta Was this translation helpful? Give feedback.
client = MilvusClient("Test.db") ------------------- This is a milvus lite, which is a lightweight milvus, it only supports part of functions. Array type is not supported by milvus lite.
Follow this document to deploy a milvus standalone server in local:
https://milvus.io/docs/install_standalone-docker-compose.md
If the deployment is correct, you will see 3 containers:
Then use this script to test: