Hi David
When I introduce on search box by example term1 term2
it gives results thant contains term1 and term2 but also results wich contains only term1 or term2.
REading the forum I've learned its due the search doesn't use a boolean system.
on http://www.pricetapestry.com/node/420
where described how to implement boolean search, but it is on an older version.
Could you please show the changes should be done on search.php to make a boolean search
I'm using the beta version
thanks in advance
javier
Hi javier,
Sure - in the beta version, look for the following code at line 215:
$where = "MATCH ".$matchFields." AGAINST ('".database_safe($parts[0])."')";
...and REPLACE with:
$match = "+".str_replace(" "," +",$parts[0]);
$where = "MATCH ".$matchFields." AGAINST ('".database_safe($match)."' IN BOOLEAN MODE)";
Cheers,
David.
--
PriceTapestry.com