【问题标题】:Azure proximity search with exact phrases?使用精确短语的 Azure 邻近搜索?
【发布时间】:2019-07-04 02:23:54
【问题描述】:

我正在尝试使用带有两个短语的 Azure 邻近搜索。有用。例如:

"unit test"~2 // returns all occurrences of unit and test within two words.

但是,我怎样才能在接近时使用精确的短语?例如,我需要在故事的 5 个单词内找到“单元测试”的匹配项。以下方法不起作用:

""unit test" story"~5

同样"unit test story"~5 不会返回正确的匹配项。

有什么想法吗?

谢谢。

【问题讨论】:

    标签: azure-cognitive-search


    【解决方案1】:

    您可以将查询分成两部分

    1. 包含“单元测试”
    2. “test”在“story”的5个字以内

    所以查询会变成search="unit test" AND "test story"~5

    【讨论】:

      猜你喜欢
      • 2011-07-28
      • 2011-02-26
      • 1970-01-01
      • 2019-01-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多