Wrox Home  
Search P2P Archive for: Go

  Return to Index  

iis_applications thread: Using Multiple Scope


Message #1 by psinghp@e... on Fri, 23 Nov 2001 09:50:13 +0400
Hi every one

I am using widow 2000 and IIS 5.0 Index Server 3.0. I have a directory c:\test
which has three sub directories c:\test\test1, c:\test\test2 and c:\test\test3.
I have successfully created a catalogue MyTest.

My search page is working Ok. I can search the complete catalogue and/or
individual sub directories without any problem.  I can even search two or more
sub directories ( (c:\test\test1 and c:\test\test2) or (c:\test\test1 and
c:\test\test3) or (c:\test\test2 and c:\test\test3)) using
"util.AddScopeToQuery Q,FormScope, "deep".

However, the statement   util.AddScopeToQuery Q,FormScope, "deep" has to be hard
coded in the asp page for each scope as shown below.

 util.AddScopeToQuery Q,"/test/test1", "deep"
 util.AddScopeToQuery Q,"/test/test2", "deep"

I want to allow users to select the sub directories to be searched from the
page. The list is stored in a variable CScope.

When i try to use the following code to replace the above hard coded statements
in the asp page by this do loop only the first sub directory is picked up.

CScope(0)="/test/test1/"
CScope(1)="/tet/test2/"

Here cNum =1

for I =0 to cNum
 util.AddScopeToQuery Q,cScope(i), "deep"
Next

only sub directory "/test/test1/" is searched.

The question is why does it fail to search "/test/test2"??
Does it mean that the statement  util.AddScopeToQuery Q,FormScope, "deep" has to
be hardcoded in the page for every scope.

I will appreciate any suggestion to solve this problem.


TIA

Dr Prabhu



  Return to Index