I have an index for my web site that I am querying from an ASP script.
It basically takes a user inputted string and searchs for it in the index.
It does this by simply adding
to what ever the user inputs, however if they input nothing I want to return all the index.
I am a very new to indexing on iis so coul someone tell me what query to use to return all the index please.
Here is the code in case it helps:
(If a user searchs for nothing with this code it says:CreateRecordset error '80041605'
The query contained only ignored words.)
Thanks in advance.
It basically takes a user inputted string and searchs for it in the index.
It does this by simply adding
Code:
'$CONTENTS '
I am a very new to indexing on iis so coul someone tell me what query to use to return all the index please.
Here is the code in case it helps:
Code:
<%
function strRemPunc(str)
dim chrNum
for chrNum = 33 to 47
str = replace(str,chr(chrNum)," ") 'removes !"~$%&'()*+,-./
next
for chrNum = 58 to 64
str = replace(str,chr(chrNum)," ") 'removes :;<=>?@
next
for chrNum = 91 to 96
str = replace(str,chr(chrNum)," ") 'removes [\]^_`
next
for chrNum = 123 to 126
str = replace(str,chr(chrNum)," ") 'removes {|}~
next
strRemPunc = str
end function
rSearchString = strRemPunc(request.form("SearchString"))
set Q = Server.CreateObject("ixsso.Query")
set util = Server.CreateObject("ixsso.Util")
Q.Query = "$CONTENTS "&rSearchString
Q.Catalog = "Web"
Q.SortBy = "rank[d]"
Q.Columns = "DocTitle, vpath, filename, size, write, characterization, rank"
Q.MaxRecords = 500
util.AddScopeToQuery Q, "\", "deep"
Q.LocaleID = util.ISOToLocaleID("EN-US")
set RS = Q.CreateRecordSet("nonsequential")
RS.PageSize = PageSize
%>
The query contained only ignored words.)
Thanks in advance.