Windows桌面搜索不返回QueryFocusedSummary [英] Windows Desktop Search not returning QueryFocusedSummary

查看:172
本文介绍了Windows桌面搜索不返回QueryFocusedSummary的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在通过使用Windows桌面搜索,
这将是很好,如果我能请参阅相关的搜索文本的
文档中的一段文字索引的文件搜索。然而,当我尝试
检索System.Search.QueryFocusedSummary或
System.Search.QueryFocusedSummaryWithFallback我得到错误
找不到列名。



(即我使用的这个查询的代码显示在这个问题:
微软桌面搜索 - 包含不返回Windows Server 2008的



<成果p >因为当你做资源管理器中进行搜索,
你的文字在搜索结果中的片断这是令人困惑的。因此,它可能以某种方式。



根据这个文件的 http://msdn.microsoft.com/en-us/library/windows/desktop/bb760171%28v=vs.85%29.aspx
应该是可回收,同样是自动摘要是



这个问题已经被问过MSDN这里:



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



但我希望聪明的人计算器可以帮助我。



作为一个方面说明,我,为什么这不工作相当混乱,没有大量的
的人需要索引和搜索文件?每个人都使用Lucene和/或Solr的
或Windows搜索服务器呢?


解决方案

我的一位同事就遇到了这个最近的问题。 QueryFocusedSummary和QueryFocusedSummaryWithFallback确实无法通过OLEDB访问。但他们却是,通过shell访问。



在Windows SDK中,有一个样品, $ WIN_SDK /样品/ winui /壳/ appplatform / ExplorerBrowserSearch ,这将让你设置使用shell函数来执行搜索。从这里,它应该是微不足道的通过壳牌属性键分别为 PKEY_Search_QueryFocusedSummary PKEY_Search_QueryFocusedSummaryWithFallback 添加对QueryFocusedSummary和QueryFocusedSummaryWithFallback支持。


When searching through files indexed using Windows Desktop Search, it would be nice if I could see a snippet of the text within the document that is related to the search text. However when I try to retrieve "System.Search.QueryFocusedSummary" or "System.Search.QueryFocusedSummaryWithFallback " I get a "column name not found" error.

(The code that I am using to query this is shown in this question: Microsoft Desktop Search - CONTAINS not returning results on windows server 2008 )

This is confusing because when you do a search within explorer, you get the snippet of text in your results. So it's possible somehow.

According to this documentation http://msdn.microsoft.com/en-us/library/windows/desktop/bb760171%28v=vs.85%29.aspx it should be retrievable, the same that AutoSummary is.

This question has already been asked on MSDN here:

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

but I'm hoping that the clever stackoverflow people can help me.

As a side note, I'm quite confused as to why this doesn't work, don't lots of people need to index and search documents? Does everyone use Lucene and/or Solr or Windows Search Server instead?

解决方案

A colleague of mine ran into this problem recently. QueryFocusedSummary and QueryFocusedSummaryWithFallback are indeed not accessible via OLEDB. They are, however, accessible via Shell.

In the Windows SDK, there is a sample, $WIN_SDK/Samples/winui/shell/appplatform/ExplorerBrowserSearch, which will get you set up on using Shell functions to perform a search. From here, it should be trivial to add support for QueryFocusedSummary and QueryFocusedSummaryWithFallback via the Shell Property Keys PKEY_Search_QueryFocusedSummary and PKEY_Search_QueryFocusedSummaryWithFallback respectively.

这篇关于Windows桌面搜索不返回QueryFocusedSummary的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆