--- search.module 12 Dec 2006 19:12:37 -0000 1.2 +++ search.module 19 Dec 2006 02:12:57 -0000 @@ -736,7 +736,7 @@ $query = implode(' AND ', $query); // Build word-index conditions for the first pass - $query2 = substr(str_repeat("i.word = '%s' OR ", count($arguments2)), 0, -4); + $query2 = substr(str_repeat("i.word like '%%%s%%' OR ", count($arguments2)), 0, -4); return array($query, $arguments, $query2, $arguments2, $matches); } @@ -761,7 +761,7 @@ } } // Return matching snippet and number of added words - return array("d.data ". ($not ? 'NOT ' : '') ."LIKE '%% %s %%'", $count); + return array("d.data ". ($not ? 'NOT ' : '') ."LIKE '%%%s%%'", $count); }