Posted By: jmazner | Jun 20th, 2006 @ 1:39 PM | 28,163 Views | 11 Comments
Ian Griffiths, dev trainer extraordinaire, recorded a series of "how-to" videos for us, each one demonstrating how to write code that takes advantage of a feature of the Windows Vista platform.  Here's the first in the series -- how to issues queries against the desktop search engine.

[Update: the second installment, How To: Use Vista's Power Management APIs To Be A Good Laptop Citizen is now up]
Media Downloads:
Rating:
0
0

I tried with a similar code. I was able to get the column name with reader.GetName(0) but the result set was not found. that is , when i say reader.GetString(0), i get the error saying there is no data in the row/column. i tried out with different keywords but still the same result. I also tried using the same keyword in the WDS, then i got some results. My prob is i am not able to get the same result programmatically. The query i am using is:

SELECT DocTitle FROM systemindex..scope() WHERE CONTAINS('" + "Choose" + "')".

here i am searching for the keyword "Choose".

can neone pls help me on this..

I use that code on my website devoted to hard money, safe work....  testing
Microsoft Communities