【问题标题】:Is it possible to get a list of unique field values from an azure search index?是否可以从 azure 搜索索引中获取唯一字段值列表?
【发布时间】:2020-04-04 09:59:16
【问题描述】:

我有一个包含 DocumentId 字段的天蓝色搜索索引。在使用关键字执行搜索时,我需要获取唯一 DocumentId 条目的列表。 这有可能吗?

【问题讨论】:

    标签: c# azure azure-cognitive-search azure-search-.net-sdk


    【解决方案1】:

    对于查询,它将是这样的:

    search=keyword&searchFields=DocumentId
    

    但 Azure 搜索中没有独特的选项,因为这是一项昂贵的任务。您需要在后端执行它:

    https://stackoverflow.com/a/56699157/1384539

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-06-06
      • 1970-01-01
      • 2011-11-09
      • 1970-01-01
      • 2019-12-18
      • 2010-10-30
      • 1970-01-01
      • 2021-01-11
      相关资源
      最近更新 更多