need help on indexing service-urgent

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

I'm working on indexing a website. I want to restict the search to only few
file types like .doc,.txt and.ppt
How to specify the file types in the 'ixsso.Query' object

Presently i'n using the following syntax:

dim ixQuery ' Index Server query object.
set ixQuery = Server.CreateObject("ixsso.Query")

ixQuery.Columns = "doctitle, vpath, size, characterization, rank"
strQuery = " (#filename *.doc) AND " &_
"(NOT #vpath *\_vti*) AND (NOT #vpath *\cgi-bin*) AND " &_
" (NOT #vpath *\IISOrigBackup*) AND (NOT #vpath *\scripts*) AND " &_ "(NOT
#vpath *\_private*) AND " &_ "(" & target & ")"
ixQuery.SortBy = "rank[d], doctitle"
ixQuery.Query = strQuery

Can any one help me out? It's urgent

Regards
AVL
 
* =?Utf-8?B?QVZM?= said:
I'm working on indexing a website. I want to restict the search to only few
file types like .doc,.txt and.ppt
How to specify the file types in the 'ixsso.Query' object

Presently i'n using the following syntax:

dim ixQuery ' Index Server query object.
set ixQuery = Server.CreateObject("ixsso.Query")

ixQuery.Columns = "doctitle, vpath, size, characterization, rank"
strQuery = " (#filename *.doc) AND " &_
"(NOT #vpath *\_vti*) AND (NOT #vpath *\cgi-bin*) AND " &_
" (NOT #vpath *\IISOrigBackup*) AND (NOT #vpath *\scripts*) AND " &_ "(NOT
#vpath *\_private*) AND " &_ "(" & target & ")"
ixQuery.SortBy = "rank[d], doctitle"
ixQuery.Query = strQuery

That seems to be VBScript code. For VBScript consider posting to one of
these groups:

<URL:<URL:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top