【问题标题】:Azure Cognitive Search hit highlights for phrase search operator短语搜索运算符的 Azure 认知搜索命中亮点
【发布时间】:2020-07-03 21:19:27
【问题描述】:

我们正在尝试使用 Azure 认知搜索来启用对 Azure Blob 存储中存储的文档的全文搜索。我们需要的功能之一是显示特定文档的热门亮点。

我们注意到,虽然精确短语的搜索仅正确匹配包含该精确短语的那些文档,但会为短语中的单个单词返回突出显示,而不是完整的短语。

示例

对于短语搜索“供应协议”,我们会得到“供应”和“协议”的突出显示。

请求:

{
    "search": "\"supply agreement\"",
    "select": "metadata_storage_name,metadata_storage_path,language",
    "searchFields": "merged_content",
    "highlight": "merged_content"
}

回复:

{
    "@odata.context": "https://....search.windows.net/indexes('...')/$metadata#docs(*)",
    "value": [
        {
            "@search.score": 0.047654618,
            "@search.highlights": {
                "merged_content": [
                    "Customer has agreed to engage Supplier to <em>supply</em> the Products and Supplier has agreed to accept the engagement on the terms set out in this <em>Agreement</em>.",
                    "<em>Agreement</em>\n1.",
                    "Tax means goods and services, value added or similar consumption based tax applicable to the <em>supply</em> of the Products under this <em>agreement</em>.",
                    ...
                ]
            },
            "metadata_storage_name": "a2b23e30-c1e0-4c52-a659-d8705662d699.docx",
            "metadata_storage_path": "...",
            "language": "en"
        },
        ...
    ]
}

这是当前版本的 Azure 认知搜索 API 的已知问题吗?

【问题讨论】:

    标签: azure-cognitive-search hit-highlighting


    【解决方案1】:

    目前没有办法突出显示整个短语,但我有个好消息要告诉你。 突出短语的工作是我们正在跟踪并计划发布的工作,尽管我还没有具体的日期要宣布。

    Luis Cabrera - 首席项目经理 - Azure 认知搜索

    【讨论】:

    • 谢谢路易斯!期待在即将到来的更新中获得此功能。
    • 是的……很遗憾,当高亮显示与搜索结果不相似时。这让我们的用户很困惑!
    • @luis-cabrera,是否有可能将邻近搜索的突出显示也修复为仅显示实际搜索结果?
    猜你喜欢
    • 2020-08-12
    • 1970-01-01
    • 2020-03-27
    • 2021-12-09
    • 1970-01-01
    • 2022-01-24
    • 2021-11-28
    • 1970-01-01
    • 2020-09-01
    相关资源
    最近更新 更多