Custom WDS Rules

Posted: 12-23-2007, 07:00 AM
I have these requirements of WDS for a project:

1) I need to be able to add a new location to the user scope rules for WDS
so that it indexes an application specific folder. This folder, at the
moment, contains only text files.

2) This folder *should not* be included in any of Vista's searches from the
shell. For example, if a user does Windows+F, the shell will not search my
app specific locations.

3) I need to be able to query WDS for results from my app specific folder
only.

Here is what I have so far:

private static void SetUpWDS()
{
CSearchManager searchManage = new CSearchManager();
CSearchCatalogManager catalogManager =
searchManage.GetCatalog("SystemIndex");

CSearchCrawlScopeManager crawlScopManager =
catalogManager.GetCrawlScopeManager();

crawlScopManager.RevertToDefaultScopes();

string indexablePath = @"file:///" +
ApplicationConfig.IndexableFolder;

if (crawlScopManager.IncludedInCrawlScope(indexablePa th) == 0)
{
crawlScopManager.AddUserScopeRule(@"file:///" +
ApplicationConfig.IndexableFolder, 1, 1, 0);
crawlScopManager.SaveAll();
}
}


So, rather than use the system index, can I create my own? Are there any
obvious solutions I'm missing?

Cheers,

Tim

Custom WDS Rules


Reply With Quote

Responses to "Custom WDS Rules"

 
LinkBack Thread Tools Display Modes
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
message rules? dotcom Windows Vista Mail 3 09-08-2006 11:33 PM
Importing OE Rules Shawn S. Windows Vista Mail 5 07-29-2006 02:40 PM
Export Rules Jim Windows Vista Mail 3 07-03-2006 01:09 PM
Message Rules DPK Windows XP Basics 6 07-14-2003 05:19 AM
help with fax dialing rules. . . Russ Valentine [MVP-Outlook] Windows XP Printers / Scanners / Fax 0 07-01-2003 11:18 PM