IIS Index Server - Forcing the index server to index

This is Interesting: Free IT Magazines  
Home > Archive > IIS Index Server > March 2006 > Forcing the index server to index





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Forcing the index server to index
FSBarker

2006-03-07, 2:49 am

When using the Index Server admin, catalog, and scope interfaces in C#, I
need to have the index start indexing as soon as I add the new scopes. I have
my code testing the DocumentsToFilter property of the catalog, can't get the
indexing started unless I manually go to the Index Service.

Any suggestions would be appreciated. Below is some of the code for adding a
scope, the specifying it Rescan().

public void AddScope(string scopePath)
{

_catalog.AddScope(scopePath, false, null, null);

IScopeAdm scope = (IScopeAdm)_catalog.GetScopeByPath(scopePath);

scope.Rescan(true);

}




Scott
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com