Version 0.9 ()
------------------------------------------------------------------------
+ * Support use of Boolean search mode in MySQL. Is activated when using
+ special characters like "()~*+-<>. Syntax see
+ http://dev.mysql.com/doc/mysql/en/fulltext-boolean.html.
+ (garvinhicking)
+
* Apply patch to allow usage of Feedburner RSS feeds, by Anders Clerwall
* Fixed using "_" instead of "-" in the approve trackback/comments
} else {
$group = 'GROUP BY e.id';
$distinct = '';
- $find_part = "MATCH(title,body,extended) AGAINST('$term')";
+ $term = str_replace('"', '"', $term);
+ if (preg_match('@["\+\-\*~<>\(\)]+@', $term)) {
+ $find_part = "MATCH(title,body,extended) AGAINST('$term' IN BOOLEAN MODE)";
+ } else {
+ $find_part = "MATCH(title,body,extended) AGAINST('$term')";
+ }
}
$cond = array();