By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,928 Members | 1,210 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,928 IT Pros & Developers. It's quick & easy.

need help on indexing service-urgent

P: n/a
AVL
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
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
* =?Utf-8?B?QVZM?= <AV*@discussions.microsoft.com> scripsit:
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:news://news.microsoft.com/microsoft.public.scripting.vbscript>
<URL:news://msnews.microsoft.com/microsoft.public.scripting.wsh>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.