mrhaw Reply #1, 11 months, 3 weeks ago
UPDATE: In AjaxSearch 1.9.2 it's integrated and all you need to do is: &advSearch=`exactphrase`
Here is what I needed to do:
search.class.inc.php
Add SPACES around %word%
...This is even better:
Othervise won't show words like <p>word
Here is what I needed to do:
search.class.inc.php
<?php //for highlighting
function getWhereForm($advSearch){
$whereForm = array(
'like' => " LIKE '% word %'",
'notlike' => " NOT LIKE '% word %'"
);
Add SPACES around %word%
...This is even better:
<?php // for highlighting
function getWhereForm($advSearch){
$whereForm = array(
'like' => " REGEXP '[[:<:]]word[[:>:]]'",
'notlike' => " NOT REGEXP '[[:<:]]word[[:>:]]'"
);Othervise won't show words like <p>word