on-internet
← Community

Why does array_length() reject greater-than comparisons in Milvus 2.3.3?

Stack Overflow ·

I am using Milvus 2.3.3 in standalone mode with PyMilvus 2.3.3. My collection contains an array field named test, which stores strings. I want to retrieve records where this array contains more than two elements. Filtering by an exact array length works, but using a greater-than comparison produces an error. The array field is defined as follows: from pymilvus import DataType, FieldSchema array_field = FieldSchema( name="test", dtype=DataType.ARRAY, element_type=DataType.VARCHAR, max_capacity=100, max_length=65535, ) With the collection already created and loaded, this query works: collection.

Comments

Sign in or sign up to comment and upvote.

No comments yet.