TerryG
Junior Member
United Kingdom
179 Posts |
Posted - 03 April 2002 : 12:49:53
|
When I query Index server with something like "bottle OR if" it correctly gives me all the pages containing 'bottle' and none containing 'if' as I have it specified as a noise word. However if I query using 'bottle AND if' I get error code 80041605 "The query contained only ignored words" Any one know why it seems to treat all words as noise words in a 'AND' query containing one or more noise words? The relevant bits of my code are as follows:
<% Set rsSearch = Server.CreateObject("ADODB.Recordset") strConn = "Provider=MSIDXS; Data Source=Web" strSearchFor = Replace(Trim(Request.Form("txtSearchFor")),"'","''") SELECT CASE strSearchType CASE "All" strSearchFor = Replace(strSearchFor," "," AND ") CASE "Any" strSearchFor = Replace(strSearchFor," "," OR ") END SELECT ' construct the search string strSearch = "SELECT DocTitle, vPath, FileName, Characterization, Size" & _ " FROM SCOPE()" & _ " WHERE CONTAINS ('" & strSearchFor & "')"
|
|