gpt4 book ai didi

c# - Windows 桌面搜索不返回 QueryFocusedSummary

转载 作者:行者123 更新时间:2023-11-30 18:01:43 24 4
gpt4 key购买 nike

当搜索使用 Windows 桌面搜索索引的文件时,如果我能在与搜索文本相关的文档。但是当我尝试检索“System.Search.QueryFocusedSummary”或“System.Search.QueryFocusedSummaryWithFallback”我得到一个“找不到列名”错误。

(我用来查询的代码显示在这个问题中: Microsoft Desktop Search - CONTAINS not returning results on windows server 2008 )

这很令人困惑,因为当您在资源管理器中进行搜索时,您会在结果中获得文本片段。所以这是有可能的。

根据本文档http://msdn.microsoft.com/en-us/library/windows/desktop/bb760171%28v=vs.85%29.aspx它应该是可检索的,与 AutoSummary 一样。

此问题已在此处的 MSDN 上提出:

http://social.msdn.microsoft.com/Forums/en-US/windowsdesktopsearchdevelopment/thread/dcfb40ea-b250-4294-80d0-727c7365745e/

但我希望聪明的 stackoverflow 人能帮助我。

作为旁注,我很困惑为什么这不起作用,不是很多人们需要索引和搜索文件?每个人都使用 Lucene 和/或 Solr还是 Windows Search Server?

最佳答案

我的一位同事最近遇到了这个问题。 QueryFocusedSummary 和 QueryFocusedSummaryWithFallback 确实无法通过 OLEDB 访问。但是,可以通过 Shell 访问它们。

在 Windows SDK 中,有一个示例 $WIN_SDK/Samples/winui/shell/appplatform/ExplorerBrowserSearch,它将帮助您设置使用 Shell 函数执行搜索。从这里开始,通过 Shell 属性键 PKEY_Search_QueryFocusedSummaryPKEY_Search_QueryFocusedSummaryWithFallback 分别添加对 QueryFocusedSummary 和 QueryFocusedSummaryWithFallback 的支持应该是微不足道的。

关于c# - Windows 桌面搜索不返回 QueryFocusedSummary,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8828088/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com