Click here to Skip to main content
12,956,257 members (60,483 online)

Comments by Martijn Boeker (Top 4 by date)

Martijn Boeker 7-Jun-11 15:07pm View
I don't have much hope though :-)
Martijn Boeker 7-Jun-11 15:04pm View
I reported this as 'not an answer', hoping that this will be an unanswered question again so perhaps someone else will be able to check this out and provide a solution to this problem.
Martijn Boeker 7-Jun-11 14:52pm View
I'm having the same problem. We can use Windows Search to find files and the API appears to have the ability to give a small summary that indicates why the file is a match to the search criteria (System.Search.QueryFocusedSummary). This allows us to render the search results in a similar way that Google does. The real question is, how do we get this value?

To read values through the search SQL syntax, you must select the columns you want to retrieve. I think the comment in the MS document means that System.Search.QueryFocussedSummary is a column that can be used only in the SELECT part of the query, not in the WHERE clause.

If I run a search query, the number of columns returned is the same as the number of columns in the query. There is no extra column as MRB is suggesting.
Martijn Boeker 16-Dec-10 12:27pm View
I agree. It will be most useful when you only expect null if something went wrong. For example, you expect Level2 to be not null in 99% of the cases, but you just want to make sure no exception is thrown when it is null. This then leads to the discussion of whether you want to surpress exceptions or not.. So this solution will be useful when you choose to surpress an exception when one of the objects in the path is null, much like the Java syntax enables you to do.

Advertise | Privacy | Mobile
Web02 | 2.8.170525.1 | Last Updated 1 Jan 1900
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid