PDA

View Full Version : Keyword Search question


siteontime
07-08-2009, 11:38 PM
Is there a way to use the keyword search to show only results that contain all of the items searched for?

So if I search for Jim Jane Smith. I only want records that contain all of these words. Instead I get anything that contain, Jim, Jane or Smith.

Here is my code

$WADbSearch1->initializeQueryBuilder("MYSQL","1");
//keyword array declarations
$KeyArr1 = array("minor_class_description", "Product_Base.pn", "brand_name", "medium_description", "feature");
//comparison list additions
$WADbSearch1->keywordComparison($KeyArr1,"".((isset($_GET["Search"]))?$_GET["Search"]:"") ."","AND","=",",%20","%20","%22","%22",0);


Thanks for your help.

Ray Borduin
07-09-2009, 07:10 AM
Just change your implied AND and OR in the interface.

By default a space is the OR and I think comma space is for AND

maybe switch those two and see if it works.

siteontime
07-09-2009, 07:53 AM
Thanks so much Ray. That worked!