views:

409

answers:

1

I'm working on a project where we're using Windows Desktop Search (WDS) to index files on a web share and then later allow the user to search via a website for documents in the share.

These documents are transferred to the share via FTP, however it would seem that either the computer never goes idle to index or at some point the indexing stops.

Is there a way from the command line or within the program itself to force this to happen without having to re-invent the wheel?

Using .NET 3.5 and C#.

A: 

Check out Windows Search Code Samples. They seem to have several examples on how to programatically work with Windows Search. Download the samples from http://code.msdn.microsoft.com/windowssearch. (This is for Vista and Windows 7)

If you are using Windows XP, check out the docs on MSDN

Mikael Svenson
This led me to the link http://msdn.microsoft.com/en-us/library/bb266414(v=VS.85).aspx eventually which contains a method for actually re-indexing via code. Hopefully that will work thank you!
Wade
I'll keep that link in mind myself :)
Mikael Svenson