Need help to complete my C# program. I have four content sources in my farm. I need to get all the content sources and start full crawl if the content source is idle.
What is the best way to do it. Please can someone point me to a good article for Sharepoint search object model / fast search object model.
you can get all ContentSourceCollection using like this:
if you want to specific
ContentSourcethan :To check the crawl status values for a content source
To start an incremental crawl of the content source
To start a full crawl of the content source
To pause a crawl in process
To stop a crawl of the content source
for more details see here : http://msdn.microsoft.com/en-us/library/aa679491%28v=office.12%29.aspx
UPDATE:
Here's some code to enumerate all of the search service applications in your farm. It DOES include all of them, including both FAST content and FAST query: