IIS Index Server - Multiple Catalogs on the same website

This is Interesting: Free IT Magazines  
Home > Archive > IIS Index Server > April 2005 > Multiple Catalogs on the same website





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 Multiple Catalogs on the same website
msdnbuddy

2005-04-12, 6:00 pm

Here is the scenario.
There is one large intranet that needs the search function added and we
have selected Indexing Service. I have configured Indexing Service for this.
However, there is a problem when I have multiple catalogs on the same
website. Example
Catalog1 - Search all the pages in the wwwroot folder.
Catalog2 - Search only a selected folder under the wwwroot folder
and so on.

I have configured the catalogs(Directories, Tracking) etc. All the
folders are virtual folder and have the 'Index this resource' checked in the
IIS Management console.
When I look at Indexing Service->Catalog1->Directories, I see all the
folders listed. That is fine since I want to search all the folders. But
when I look under the Catalog2->Directories, I still see all the folders even
though I would like to search only one folder. I am unable to delete the
folders listed here.
I can add a folder by browsing to it. But then, it does not have the blue
globe and Index Server does not return 'vpath' property.
Please let me know if you need more information.

I would appreciate any help.

Thanks,


msdnbuddy

2005-04-13, 5:59 pm

Thanks for the reply.
However, I do not plan to use .idq files to query the catalog. I am
currently using .asp pages. I know a little bit about using the scope to
restrict output. Is there another way? Also, can you please resend the
attachment.

Thanks,

""WenJun Zhang[msft]"" wrote:

> Hi,
>
> After a catalog is binding to a site, the directory scope is
> controlled by the 'index this resouce' option in IIS mmc. We cannot
> remove such kind of virtual directories from Indexing service
> snap-in.
>
> For the problem, actually you don't require the 2nd catalog to
> restrict the query scope. Adding the query condition of vpath will be
> the solution. For example, the following query excludes .exe,.inf
> files and files in _vti*,iissamples directories.
>
> CiRestriction=(%CiRestriction%) &! #vpath *\_vti* &! #filename *.inf
> &! #filename *.EXE &! #vpath *\iissamples*
>
> If you have concern on performance, refer to attached performance
> tuning whitepaper.
>
> Let me know if there is any further question. Thanks.
>
> Best regards,
>
> WenJun Zhang
> Microsoft Online Partner Support
>
> When responding to posts, please "Reply to Group" via your newsreader
> so that others may learn and benefit from your issue.
>
> This posting is provided "AS IS" with no warranties, and confers no
> rights

DocHoliday

2005-04-13, 5:59 pm

This is a killer. It took me weeks to get this to work. You have to
hack the registry. Use regedt32 because you have to change security.
Stop the service.
HKLM\system\(all)ControlSet\control\Cont
entIndex\catalogs\[catalogName]\scope
(Note:There will be several control sets. You need to edit all of
them.)
The scope defines what directorys your catalog will search. For each
directory you DON'T want searched change the value to 0. Simply
deleting will not work. The system automatically recreates them on
restart.
Once the directories are changed you have to set security so the system
can not change them back. On each Scope folder and the contents, do the
following.
Edit permissions, select System, change rights to read only. Now, Click
on advanced, Select system again, click edit, click Deny on 'set value'
and the 2 write objects.
PS. You need the Vpath for web searches to work right.

msdnbuddy

2005-04-13, 5:59 pm

You are the Doc!!!! Seriously, the solution has been really helpful only
downside is that vpath is not being returned.

I have made the changes as you have described. Now, under the directories
of a particular catalog, only the folders that I need indexed are displayed.
That is cool. However, vpath is still not being returned. Can you tell me
if I am missing anything. Here is what I did
1. Stopped Indexing Service
2. Used regedt32 and edited all the ControlSet entries and changed the
value from 0,0,3 or 0,0,5 to 0,0,0
3. Changed folder permissions for the SYSTEM user
4. Restarted Indexing Service

This still is not returning VPATH and I completely agree with you that for
web searches to work right, we need vpath.

Cheers

"DocHoliday" wrote:

> This is a killer. It took me weeks to get this to work. You have to
> hack the registry. Use regedt32 because you have to change security.
> Stop the service.
> HKLM\system\(all)ControlSet\control\Cont
entIndex\catalogs\[catalogName]\scope
> (Note:There will be several control sets. You need to edit all of
> them.)
> The scope defines what directorys your catalog will search. For each
> directory you DON'T want searched change the value to 0. Simply
> deleting will not work. The system automatically recreates them on
> restart.
> Once the directories are changed you have to set security so the system
> can not change them back. On each Scope folder and the contents, do the
> following.
> Edit permissions, select System, change rights to read only. Now, Click
> on advanced, Select system again, click edit, click Deny on 'set value'
> and the 2 write objects.
> PS. You need the Vpath for web searches to work right.
>
>

DocHoliday

2005-04-13, 5:59 pm

The catalog needs to be part of the domain (Right Click catalog,
properties, tracking, and "www server" should have your server. - my
web and Index are on same server).
Also be sure you have your vpaths setup through IIS.
PS. You need to do the same security fixes with the admin user as well
(just discovered this!)
It also helps to start from the top. Delete all your catalogs.
Re-create them again (each catalog needs its own folder - mine are
c:\inetpub\catalogs\cat1, \cat2, etc.) Let IS add all the folders
defined in IIS as virtual folders (you need a seperate vpath for that
subfolder your searching - do this in IIS).
Once it starts indexing, stop the service, redo the reg hack, empty the
catalogs, then restart the service.

I will occasionally get results that have no doc name or path. I'm
still figuring this one out. I may post something here.

DocHoliday

2005-04-14, 5:59 pm

UPDATE:
I realized you most likely don't have your sub-folder setup as its own
vpath. Do this 1st, then continue with the rest of the setup.
I also discovered why some results will not show the filename or vpath.
I checked "do not index" some folders in my vpath but failed to in the
NTFS. So I was getting hits from NTFS but since my vpath excluded them
from the search, it left out the name and path. After checking "Do Not
Index" in NTFS, it worked like a charm.

DocHoliday wrote:
> The catalog needs to be part of the domain (Right Click catalog,
> properties, tracking, and "www server" should have your server. - my
> web and Index are on same server).
> Also be sure you have your vpaths setup through IIS.
> PS. You need to do the same security fixes with the admin user as

well
> (just discovered this!)
> It also helps to start from the top. Delete all your catalogs.
> Re-create them again (each catalog needs its own folder - mine are
> c:\inetpub\catalogs\cat1, \cat2, etc.) Let IS add all the folders
> defined in IIS as virtual folders (you need a seperate vpath for that
> subfolder your searching - do this in IIS).
> Once it starts indexing, stop the service, redo the reg hack, empty

the
> catalogs, then restart the service.
>
> I will occasionally get results that have no doc name or path. I'm
> still figuring this one out. I may post something here.


msdnbuddy

2005-04-15, 5:56 pm

Thank you very much for the update and the solution. Appreciate it.
Thanks again.

Cheers

"DocHoliday" wrote:

> UPDATE:
> I realized you most likely don't have your sub-folder setup as its own
> vpath. Do this 1st, then continue with the rest of the setup.
> I also discovered why some results will not show the filename or vpath.
> I checked "do not index" some folders in my vpath but failed to in the
> NTFS. So I was getting hits from NTFS but since my vpath excluded them
> from the search, it left out the name and path. After checking "Do Not
> Index" in NTFS, it worked like a charm.
>
> DocHoliday wrote:
> well
> the
>
>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com