milvus-io / milvus

A cloud-native vector database, storage for next generation AI applications
https://milvus.io
Apache License 2.0
30.43k stars 2.92k forks source link

[Enhancement]: Implement array_subset_of through the mechanism of customized filtering functions. #37607

Open czs007 opened 1 day ago

czs007 commented 1 day ago

Is there an existing issue for this?

What would you like to be added?

Here’s how the filters would work:

filter="ARRAY_CONTAINS_ALL(color_coord, [7, 8])": This would match all entities where color_coord includes both 7 and 8. filter="ARRAY_SUBSET_OF(color_coord, [7, 8, 9])": This would match entities where color_coord is a subset of [7, 8, 9], such as [7], [7, 8], or [9, 7], but not [7, 8, 9, 10].

Why is this needed?

enhance array filtering

Anything else?

No response

czs007 commented 1 day ago

@jiangyinzuo Please track this issue.