close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

DA Search not finding exact phrases

Thread began 7/21/2011 1:24 pm by ccooper309155 | Last modified 7/21/2011 2:22 pm by ccooper309155 | 737 views | 4 replies


DA Search not finding exact phrases

I've recently implemented DA search on a site and it works except for exact phrases.

For instance, if I search using "Light Jungle", the results return an empty recordset even though that phrase is in the database.

If I search using Light Jungle I get every record that has Light or Jungle in it.

If I search using Light, Jungle I get every record that has Light and Jungle in it.

I have implemented DA Search many times before and not had this problem.

Using ASP VB and MS-SQL.

Here is the code from the results page:

'WA Database Search (Copyright 2005,
'Recordset: rsRuleBook;
'Searchpage: ASL.asp;
'Form: frmSearch;
dim WADbSearch1_DefaultWhere
WADbSearch1_DefaultWhere = ""
if (cStr(Request.Form("WADbSearch1")) <> "") then
dim WADbSearch1_whereClause, WADbSearch1_dateSeparator, WADbSearch1_wildCard
WADbSearch1_wildCard = "%"
WADbSearch1_dateSeparator = "'"

if ("SQL SERVER" = "ACCESS") then
end if
if ("SQL SERVER" = "ORACLE") then
end if
if ("SQL SERVER" = "MYSQL") then
end if

'keyword array declarations
Dim WADbSearch1_KeyArr0
WADbSearch1_KeyArr0 = Array("Chapter","RuleNum","RuleCopy")

'comparison list additions
WADbSearch1_whereClause=BuildKeyword(WADbSearch1_KeyArr0,"" & cStr(Request.Form("SearchBox")) & "","","Includes",",%20","%20","%22","%22",0,WADbSearch1_wildCard,WADbSearch1_dateSeparator,WADbSearch1_whereClause)

if (1 = 1) then
end if
if (1 = 1) then
if (cStr(Session("WADbSearch1_ASLRB_Searched")) <> "") then
WADbSearch1_whereClause = cStr(Session("WADbSearch1_ASLRB_Searched"))
WADbSearch1_whereClause = WADbSearch1_DefaultWhere
end if
WADbSearch1_whereClause = WADbSearch1_DefaultWhere
end if
end if

What is the problem?

Any help much appreciated!

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...