打开phpcms\modules\search\index.php找到下面代码(大约80行):
if(!empty($segment_q)) { $sql = "`siteid`= '$siteid' AND `typeid` = '$typeid' $sql_time AND MATCH (`data`) AGAINST ('$segment_q' IN BOOLEAN MODE)"; } else { $sql = "`siteid`= '$siteid' AND `typeid` = '$typeid' $sql_time AND `data` like '%$q%'"; }替换为
$sql = "`siteid`= '$siteid' AND `data` like '%$q%'"; $sql = "`siteid`= '$siteid' AND `typeid` = '$typeid' $sql_time AND `data` like '%$q%'";就是不再使用分词进行关键字搜索,而是直接使用你输入的关键字查找。