Re: limiting search scope



Hi Greg,
I, too, and currently working on filtering search results with asp and
index server. Here's what I have set up to filter my 'parent' folder
contents:

Dim strPathInputCourseName
'below, get the value passed from the form (I used a drop down in the
form to select the appropriate parent folder)
strPathInputCourseName = Request.QueryString("strPathInputCourseName")
Set objUtility = Server.CreateObject("IXSSO.Util")

'below, plug the selected directory into the search scope
objUtility.AddScopeToQuery objQuery, "c:\web_shares\amslecturenotes
\"&strPathInputCourseName, "deep"

Hope this helps!
Louis

On Feb 6, 9:47 am, "Greg" <Gmar...@xxxxxxxxxxxx> wrote:
(I recognize I'm 4-5 years late to the index service party...)

We have a small intranet site that has a bunch of .htm files and has been
using Frontpage search. Due to some changes, we want to switch to using
index service and to limit the scope of the search.

The docs are organized in directories and I'd like to limit the scope of the
search to the directory of the search page or below. I have the results.asp
page in each high level directory, but I'm having problems limiting the
search.

Using ixsso.query I've tried using this
filepath="*\this_directorty\*"
q.query=searchstring & " & #path " & filepath
This works fine however, but I have to hard-wire the directory within .asp.

So, I want to derive the directory info from the SCRIPT_NAME servervariable.
I've tried removing the filename portion of the script_name and passing that
as
lsPath = Request.ServerVariables("SCRIPT_NAME")
arPath = Split(lsPath, "/")
arPath(UBound(arPath,1)) = ""
filepath = Join(arPath, "/")

q.query=searchstring & " & #path " & filepath ' regex search
as well as:
q.query=searchstring & " & @path " & filepath ' non-regex

Both return zero results

Last thing I tried was limiting the scope using ixsso.util
set util=server.createobject("ixsso.util")
util.AddScopeToQuery q, filepath, "deep"
q.query=searchstring

This too returns zero results for the same search string.

I suspect there is a trivial answer but I've not found it.

Thank you

\\Greg




.



Relevant Pages

  • Re: ActionListener scoping
    ... an ActionListener, or return anything, or modify local method ... with its parent method. ... accessable by the method since the class scope is the method's parent ...
    (comp.lang.java.help)
  • Re: error retrieving folder.items.count
    ... I try to scope the MAPIfolder and effectively it doesn't loose the ... connection with the folder however, after a certain number of iteration ... Are you sure that your MAPIFolder object variable isn't going out of scope ...
    (microsoft.public.outlook.program_vba)
  • Re: define_method in inheritance
    ... This opens up the scope of a given class so any other class could add ... into a parent and then invoke it on a child would the new method be ... David A. Black / Ruby Power and Light, ...
    (comp.lang.ruby)
  • Re: Object scope issue...
    ... So, the "update" method on the Parent class, inserts or updates parent ... What I was doing in my "Save" command button code was setting the parent ... I only do a database update. ... Is this typically how one would control an objects scope - by setting as ...
    (microsoft.public.dotnet.languages.vb)
  • RE: Management Studio
    ... I cannot exclude it from my scope, and while it may seem like little clutter, ... Since the cached folder is internal and undocumented, ...
    (microsoft.public.sqlserver.setup)

Loading