473,320 Members | 2,004 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Adding new WDS Scope Rules

Firstly, if there's a better newsgroup to ask this on, feel free to redirect
me.

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

Dec 5 '07 #1
1 2321
Hi Tim,

As for this problem, I think it may require more windows desktop search
background. Therefore, I suggest you post in some WDS specific communities.
So far MSDN forum has dedicated group on this:

#Windows Search Technologies
http://forums.microsoft.com/MSDN/def...ID=25&SiteID=1

for newsgroup, you can post them in some windows client related newsgroups.
Here is a thread which provide some other useful WDS resources:

#Useful Links for Windows Desktop Search
http://forums.microsoft.com/MSDN/Sho...56113&SiteID=1

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
>From: "Tim Haughton" <ti**********@community.nospam>
Newsgroups: microsoft.public.dotnet.general
Subject: Adding new WDS Scope Rules

Firstly, if there's a better newsgroup to ask this on, feel free to
redirect
>me.

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

Dec 6 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

33
by: Arthur | last post by:
>>>a= >>> for p in a: print p 1 2 3 >>> p 3 My naive expectation was that p would be 'not defined' from outside
47
by: Pierre Barbier de Reuille | last post by:
Please, note that I am entirely open for every points on this proposal (which I do not dare yet to call PEP). Abstract ======== This proposal suggests to add symbols into Python. Symbols...
2
by: MrCode2k | last post by:
Hello, Trying to do: I just want a table that I can scroll and that has fixed headers. Problem: I got it to work but when I added the onmouseover event it didn't work anymore....
7
by: MrCode2k | last post by:
Hello, Trying to do: I just want a table that I can scroll and that has fixed headers. Problem: I got it to work but when I added the onmouseover event it didn't work anymore....
3
by: fctk | last post by:
are the following rules correct in C89/C90? ---- SCOPE RULES 1) the scope of an identifier declared inside a block is the block in which it is declared; 2) when you have nested blocks...
39
by: utab | last post by:
Dear all, Is there a clear distinction how to decide which functions to be members of a class and which not How is your attitude (Your general way from your experiences ...) "If the...
3
by: n2xssvv g02gfr12930 | last post by:
Although I rarely if ever have a problem with scope, I was wondering whether anybody knows of good reference, (book, web page, etc), that covers scope rules. Hopefully this will be helpful to...
5
by: Steven T. Hatton | last post by:
If find the following excerpt from the Standard a bit confusing: <quote> 3.3.6 - Class scope -1- The following rules describe the scope of names declared in classes. 1) The potential scope...
17
by: Sven Rutten | last post by:
Hello Actually I want to add some C#-Code to a VB.NET-Project in VS 2005. Normally I creating a DLL and importing that from the VB-Project. But as I am coding something for a Smart Device...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.