<% ' This section sets the various configuration variables formscope="/" pagesize = 50000 maxrecords=50000 searchstring=request.form("searchstring") catalogtosearch=request.form("catalog") searchrankorder=request.form("searchrankorder") + request.form("order") origsearch=searchstring %> <% if origsearch="" then response.write "

Please enter something to search!
" & response.End %> <% 'This section performs the query dim q dim util set q=server.createobject("ixsso.query") set util=server.createobject("ixsso.util") q.query=searchstring q.catalog=catalogtosearch q.sortby=searchrankorder q.columns="doctitle, directory, filename, size, write, rank, path" q.maxrecords=maxrecords %> <% 'This section displays the results set rs=q.createrecordset("nonsequential") rs.pagesize=pagesize response.write"

Your search for " & origsearch & " produced " if rs.recordcount=0 then response.write "no results" if rs.recordcount=1 then response.write "1 result: " if rs.recordcount>1 then response.write(rs.recordcount) & " results: " %> <% do while not rs.EOF response.write "" rs.movenext loop response.write "
TitleDirectoryFilenameDate / TimeSizeRelevance
" & rs("doctitle") & "" & "" & rs("directory") & "" & "" & rs("filename") & "" & "" & rs("write") & "" & rs("size") & "" & rs("rank") & "
" set rs=nothing set q=nothing set util=nothing %>