10. March 2007 18:49
And of course, just to demonstrate that the universe actually does understand irony (*), Microsoft have just released the SDK for WDS 3.x.
Some very interesting things here. The usual suspects for querying (OleDB and ADO.net), even a handy command line app.
The indexing section includes an example implementation of IFilter, and a rather useful ATL style C++ class called IFilterImpl to take a lot of work from you.
There's also a really impressive registry shell namespace extension which includes a protocol handler. Yep, with this example, you can search the registry from the Start menu. I think the nice thing about this sample is the way it's so integrated. The shell stuff leans on the new Vista property store and the protocol handler indexes the shell folder, rather than the registry itself.
(And I rather think there's a little secret in that example too. One that will come in very handy when I'm ready to migrate from the user mode 2.x to the service-based 3.x...)
I think I'm going to get a lot of use out of a couple of the samples in the management section too. One seems able to query and set what urls are included or excluded or set as roots. But the killer is a simple example that queries the index (based on the command line) and notifies the index that the urls have been deleted. Hence, they'll get removed from the index, the source will get crawled again, and the items will get re-indexed. Very useful.
(*) The irony only really being obvious if you read my post of 15 minutes ago.