Binto, code for intercepting word count below 3 is in line 49
PHP Code:
if(empty($keyword) || strlen($keyword)<3) {
$error_msg = $msg["10024"];
DisplayTemplate($theme_path."search_error.html","\$error_msg,\$keyword");
DisplayTemplate($theme_path."footer.html","\$cat");
exit();
}
After that indexu will break word phrase into some word and search each one depend on boolean search given. Line 57-60 will explode the keyword
PHP Code:
$keyword = chop($keyword);
$keyword_org = $keyword;
$keywords = explode(" ", $keyword);
$keywords_org = $keywords;
If you want to prevent this, your code would like this:
PHP Code:
$keyword = chop($keyword);
$keyword_org = $keyword;
$keywords[] = $keyword;
$keywords_org = $keywords;