是否可以在 Azure 搜索索引中查询类型为非空的 Collection 的指定字段?

Is it possible to query an Azure Search Index for a specified field of type Collection being not null?

我需要查询大型 Azure 索引以查找特定字段(只是字符串的集合或数组)为空的所有记录,但我无法尝试使用 Odata 表达式来识别它们,因为显然是这种类型数据无法量化以用于过滤器:

{
   "search": "*",
   "queryType": "full",
   "select": "Email",
   "count": true,
   "filter": "Skills eq null"
}

尝试这种方式会抛出以下错误:

二元运算符 'NotEqual' 的操作数不是单个值。二元运算符要求两个操作数都是单个值。\r\nParameter name: $filter

那么,在相应的 Collection(Edm.String) 是一个空数组的情况下,我该如何获得这些记录的列表?


      UPDATED

谢谢大家。根据推荐的解决方案,以下 returns 只有那些有记录的集合。

{
    "searchMode": "any",
    "queryType": "full",
    "select": "QualifiedFor",
    "count": true,
    "filter": "Skills/any()"
}  

$过滤器使用 OData:

The any operator applies a Boolean expression to each member of a collection and returns true if the expression is true for any member of the collection, otherwise it returns false. The any operator without an argument returns true if the collection is not empty.

来源:http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part2-url-conventions/odata-v4.0-errata03-os-part2-url-conventions-complete.html#_Toc371341806

正如@Guarav Matri所说,只需使用$filter=Skills/any()