|
 |
asp_web_howto thread: Incorporating MS Index Server with ASP
Message #1 by "Tracey" <tmarcins@p...> on Thu, 18 Jan 2001 16:20:16 -0000
|
|
Anyone know about incorporating MS Index Server functionality into ASP
code? None of my search queries return a "find" when they should (but I
get no errors...Any ideas? Here are the rellevant sections of my code:
'Connect to and open MS Index Server
dim objConnection
dim objRecordset
dim strSQL
dim strKeyword
dim strResult
strKeyword = Request("txtKeyword")
set objConnection =Server.CreateObject("ADODB.Connection")
objConnection.ConnectionString = "provider=msidxs;"
objConnection.Open
strSQL = "SELECT Filename, size FROM SCOPE
(E:\InetPub\paragonintranet\myParagon) WHERE CONTAINS "
strSQL = strSQL & " ('" & strKeyword & "')"
Response.Write("Selected search text:<font color =red> " & strKeyword & "</font>.")
set objRecordset = objConnection.Execute(strSQL)
I have created a catalog on the console root and the location property
points to the InetPub/wwwroot.
Any help will be GREATLY appreciated!
|
|
 |