X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FSearchMySQL.php;h=f9b71c8ecd408f57dc6ad9a6f047d569ba11e00d;hb=e2f1a14d9e27ff6da71be14619e878a78e9385e1;hp=ecbb528680027990b611cae97a14ea0a202955c2;hpb=7532064d279d2c1fbbbe867b4720b191675a1fa3;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/SearchMySQL.php b/includes/SearchMySQL.php index ecbb528680..f9b71c8ecd 100644 --- a/includes/SearchMySQL.php +++ b/includes/SearchMySQL.php @@ -17,9 +17,14 @@ # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # http://www.gnu.org/copyleft/gpl.html +/** + * @file + * @ingroup Search + */ + /** * Search engine hook for MySQL 4+ - * @addtogroup Search + * @ingroup Search */ class SearchMySQL extends SearchEngine { var $strictMatching = true; @@ -54,10 +59,10 @@ class SearchMySQL extends SearchEngine { // Match the quoted term in result highlighting... $regexp = preg_quote( str_replace( '"', '', $terms[2] ), '/' ); } - $this->searchTerms[] = "\b$regexp\b"; + $this->searchTerms[] = $regexp; } wfDebug( "Would search with '$searchon'\n" ); - wfDebug( 'Match with /\b' . implode( '\b|\b', $this->searchTerms ) . "\b/\n" ); + wfDebug( 'Match with /' . implode( '|', $this->searchTerms ) . "/\n" ); } else { wfDebug( "Can't understand search query '{$filteredText}'\n" ); } @@ -226,7 +231,7 @@ class SearchMySQL extends SearchEngine { } /** - * @addtogroup Search + * @ingroup Search */ class MySQLSearchResultSet extends SearchResultSet { function MySQLSearchResultSet( $resultSet, $terms ) { @@ -250,10 +255,8 @@ class MySQLSearchResultSet extends SearchResultSet { return new SearchResult( $row ); } } - + function free() { $this->mResultSet->free(); } } - -