Azure cognitive search 短语搜索运营商Azure认知搜索热点

Azure cognitive search 短语搜索运营商Azure认知搜索热点,azure-cognitive-search,hit-highlighting,Azure Cognitive Search,Hit Highlighting,我们正在尝试使用Azure认知搜索来启用对Azure Blob存储中存储的文档的全文搜索。我们需要的功能之一是显示特定文档的热门亮点 我们注意到,虽然搜索精确短语只会正确匹配包含该精确短语的文档,但会返回短语中单个单词的突出显示,而不是完整短语 示例 对于短语搜索“供应协议”,我们将突出显示“供应”和“协议” 请求: { "search": "\"supply agreement\"", "select": "metadata_storage_name,metadata_stor

我们正在尝试使用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"
        },
        ...
    ]
}
{
“@odata.context”:”https://....search.windows.net/indexes(“…”)/$metadata#文档(*)”,
“价值”:[
{
“@search.score”:0.047654618,
“@search.highlights”:{
“合并内容”:[
“客户已同意委托供应商提供产品,供应商已同意根据本协议规定的条款接受委托。”,
“协议\n1。”,
“税收是指适用于本协议项下产品供应的货物和服务、增值税或类似消费税。”,
...
]
},
“元数据存储名称”:“a2b23e30-c1e0-4c52-a659-d8705662d699.docx”,
“元数据存储路径”:“…”,
“语言”:“en”
},
...
]
}

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

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


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

谢谢Luis!期待在即将到来的更新中获得此功能。是的。。。当突出显示与搜索结果不相似时,这是非常可悲的。这让我们的用户很困惑@路易斯·卡布雷拉,近距离搜索的突出显示是否也会被修正为只显示实际的搜索结果?