summaryrefslogtreecommitdiff
path: root/includes/SearchTsearch2.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/SearchTsearch2.php')
-rw-r--r--includes/SearchTsearch2.php20
1 files changed, 9 insertions, 11 deletions
diff --git a/includes/SearchTsearch2.php b/includes/SearchTsearch2.php
index 1fca9899..b504f034 100644
--- a/includes/SearchTsearch2.php
+++ b/includes/SearchTsearch2.php
@@ -19,14 +19,12 @@
/**
* Search engine hook for PostgreSQL / Tsearch2
- * @package MediaWiki
- * @subpackage Search
+ * @addtogroup Search
*/
/**
* @todo document
- * @package MediaWiki
- * @subpackage Search
+ * @addtogroup Search
*/
class SearchTsearch2 extends SearchEngine {
var $strictMatching = false;
@@ -97,7 +95,7 @@ class SearchTsearch2 extends SearchEngine {
}
function update( $id, $title, $text ) {
- $dbw=& wfGetDB(DB_MASTER);
+ $dbw = wfGetDB(DB_MASTER);
$searchindex = $dbw->tableName( 'searchindex' );
$sql = "DELETE FROM $searchindex WHERE si_page={$id}";
$dbw->query($sql,"SearchTsearch2:update");
@@ -110,13 +108,13 @@ class SearchTsearch2 extends SearchEngine {
}
function updateTitle($id,$title) {
- $dbw=& wfGetDB(DB_MASTER);
- $searchindex = $dbw->tableName( 'searchindex' );
- $sql = "UPDATE $searchindex SET si_title=to_tsvector('" .
- $dbw->strencode( $title ) .
- "') WHERE si_page={$id}";
+ $dbw = wfGetDB(DB_MASTER);
+ $searchindex = $dbw->tableName( 'searchindex' );
+ $sql = "UPDATE $searchindex SET si_title=to_tsvector('" .
+ $dbw->strencode( $title ) .
+ "') WHERE si_page={$id}";
- $dbw->query( $sql, "SearchMySQL4::updateTitle" );
+ $dbw->query( $sql, "SearchMySQL4::updateTitle" );
}
}