* @access public
*/
function searchText( $term ) {
- $resultSet = $this->db->resultObject( $this->db->query( $this->getQuery( $this->filter( $term ), true ) ) );
+ $resultSet = $this->db->resultObject(
+ $this->db->query( $this->getQuery( $this->filter( $term ), true ) )
+ );
+
return new SqlSearchResultSet( $resultSet, $this->searchTerms );
}
* @access public
*/
function searchTitle( $term ) {
- $resultSet = $this->db->resultObject( $this->db->query( $this->getQuery( $this->filter( $term ), false ) ) );
+ $resultSet = $this->db->resultObject(
+ $this->db->query( $this->getQuery( $this->filter( $term ), false ) )
+ );
+
return new SqlSearchResultSet( $resultSet, $this->searchTerms );
}
*/
function parseQuery( $filteredText, $fulltext ) {
global $wgContLang;
- $lc = SearchEngine::legalSearchChars();
+ $lc = $this->legalSearchChars();
$this->searchTerms = array();
# @todo FIXME: This doesn't handle parenthetical expressions.