|
Home > Archive > IIS Index Server > March 2005 > Getting filename query to honor index exclusions
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 |
Getting filename query to honor index exclusions
|
|
|
| Hi,
I'm using Index Server on Win Server 2k3 with the ixsso object to query the
"Web" catalog. Here's a code snippet:
Set objQuery = Server.CreateObject("ixsso.Query")
With objQuery
.Catalog = "Web"
.Query = "(@all " & strQuery & ") &! #path *\_vti_*"
.MaxRecords = 50
.SortBy = "rank [d]"
.Columns = "doctitle, filename, path, vpath, write, size, rank"
End With
Set rstResults = objQuery.CreateRecordset("nonsequential")
The problem is that the query does not honor the indexing restrictions setup
for certain folders when searching for filenames. For example, even though I
disable indexing on a particular folder, I still get filename matches from
that folder.
I want the index server query to honor these folder exclusions when it finds
matches not only in content but also by filename.
Does anyone know how I can accomplish this?
Thanks in advance!
Jim
| |
| Hilary Cotter 2005-03-04, 5:55 pm |
| Can you give us an example? I think the problem could be with your scopes
and how they map to the virtual directories.
--
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
"Jim~C" <jdchanATnovusint.com> wrote in message
news:%23lZWQqHIFHA.1948@TK2MSFTNGP14.phx.gbl...
> Hi,
>
> I'm using Index Server on Win Server 2k3 with the ixsso object to query
the
> "Web" catalog. Here's a code snippet:
>
> Set objQuery = Server.CreateObject("ixsso.Query")
> With objQuery
> .Catalog = "Web"
> .Query = "(@all " & strQuery & ") &! #path *\_vti_*"
> .MaxRecords = 50
> .SortBy = "rank [d]"
> .Columns = "doctitle, filename, path, vpath, write, size, rank"
> End With
> Set rstResults = objQuery.CreateRecordset("nonsequential")
>
> The problem is that the query does not honor the indexing restrictions
setup
> for certain folders when searching for filenames. For example, even though
I
> disable indexing on a particular folder, I still get filename matches from
> that folder.
>
> I want the index server query to honor these folder exclusions when it
finds
> matches not only in content but also by filename.
>
> Does anyone know how I can accomplish this?
>
> Thanks in advance!
> Jim
>
>
|
|
|
|
|