X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fsearch%2FSearchPostgres.php;h=729e528fd6a81caf39e3640627a06bedb07c19a6;hb=3289f612b7b488bd6a92e9d1656cb6729d1b7cf7;hp=8ba49b60f9dcdabadcec361ddd220eb72d451693;hpb=8e5ec3f6cf9cb5f3ecf5ff30430ff37b5a7857a7;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/search/SearchPostgres.php b/includes/search/SearchPostgres.php index 8ba49b60f9..729e528fd6 100644 --- a/includes/search/SearchPostgres.php +++ b/includes/search/SearchPostgres.php @@ -37,7 +37,7 @@ class SearchPostgres extends SearchDatabase { * @param string $term Raw search term * @return SqlSearchResultSet */ - function searchTitle( $term ) { + protected function doSearchTitle( $term ) { $q = $this->searchQuery( $term, 'titlevector', 'page_title' ); $olderror = error_reporting( E_ERROR ); $resultSet = $this->db->query( $q, 'SearchPostgres', true ); @@ -45,7 +45,7 @@ class SearchPostgres extends SearchDatabase { return new SqlSearchResultSet( $resultSet, $this->searchTerms ); } - function searchText( $term ) { + protected function doSearchText( $term ) { $q = $this->searchQuery( $term, 'textvector', 'old_text' ); $olderror = error_reporting( E_ERROR ); $resultSet = $this->db->query( $q, 'SearchPostgres', true ); @@ -61,8 +61,7 @@ class SearchPostgres extends SearchDatabase { * * @return string */ - function parseQuery( $term ) { - + private function parseQuery( $term ) { wfDebug( "parseQuery received: $term \n" ); # # No backslashes allowed @@ -115,7 +114,6 @@ class SearchPostgres extends SearchDatabase { wfDebug( "parseQuery returned: $searchstring \n" ); return $searchstring; - } /** @@ -125,7 +123,7 @@ class SearchPostgres extends SearchDatabase { * @param string $colname * @return string */ - function searchQuery( $term, $fulltext, $colname ) { + private function searchQuery( $term, $fulltext, $colname ) { # Get the SQL fragment for the given term $searchstring = $this->parseQuery( $term );