Azure 搜索查询是否支持 count(collection) > 1

Is count(collection) > 1 supported in an Azure Search query

有没有办法对搜索查询中的集合类型进行计数?如果 CollectionsOfIds 是一个 EDM 字符串集合:

$filter=count(CollectionsOfIds) > 1

谢谢!

您不能直接访问集合中元素的数量。您最多只能测试集合是否为空:

$filter=CollectionOfIds/any()