【问题标题】:Is count(collection) > 1 supported in an Azure Search queryAzure 搜索查询是否支持 count(collection) > 1
【发布时间】:2019-01-04 03:24:14
【问题描述】:

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

$filter=count(CollectionsOfIds) > 1

谢谢!

【问题讨论】:

    标签: azure-cognitive-search


    【解决方案1】:

    您不能直接访问集合中元素的数量。你能做的最好的就是测试一个集合是否为空:

    $filter=CollectionOfIds/any()
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-03-04
      • 2021-10-11
      • 2016-02-27
      • 1970-01-01
      相关资源
      最近更新 更多