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:
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?
Since you didn't post any code I have to speculate a bit...
I assume you are using OleDB/SQL to execute a query...
Neither
QueryFocusedSummary
norQueryFocusedSummaryWithFallback
are real columns and thus NOT available via OleDB/SQL !The only columns available this way are AFAIK
QueryFocusedSummary
andQueryFocusedSummaryWithFallback
are IIRC properties accessiable via COM or a Shell interface .