Azure 认知搜索命中短语搜索运算符的亮点
Azure Cognitive Search hit highlights for phrase search operator
我们正在尝试使用 Azure 认知搜索对存储在 Azure Blob 存储中的文档启用全文搜索。我们需要的功能之一是显示特定文档的热门亮点。
我们注意到,虽然对精确短语的搜索只能正确匹配那些包含该精确短语的文档,但返回的是该短语中单个单词的突出显示,而不是整个短语。
例子
对于短语搜索 "supply agreement",我们得到 "supply" 和 "agreement" 的高亮显示。
要求:
{
"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?
目前无法突出显示整个短语,但我有一个好消息要告诉你。
突出短语的工作是我们正在跟踪并计划发布的工作,但我还没有具体的日期要宣布。
Luis Cabrera - 首席项目经理 - Azure 认知搜索
我们正在尝试使用 Azure 认知搜索对存储在 Azure Blob 存储中的文档启用全文搜索。我们需要的功能之一是显示特定文档的热门亮点。
我们注意到,虽然对精确短语的搜索只能正确匹配那些包含该精确短语的文档,但返回的是该短语中单个单词的突出显示,而不是整个短语。
例子
对于短语搜索 "supply agreement",我们得到 "supply" 和 "agreement" 的高亮显示。
要求:
{
"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?
目前无法突出显示整个短语,但我有一个好消息要告诉你。 突出短语的工作是我们正在跟踪并计划发布的工作,但我还没有具体的日期要宣布。
Luis Cabrera - 首席项目经理 - Azure 认知搜索