X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fsearch%2FSearchOracle.php;h=e14de2c1a5e6f16d3d258bf68739ba8af54314d6;hb=03f222280f572a23baa6ed14cfaf48c69b6fbd32;hp=cea17d28fc588a75f796364f4dcd073a133df6fc;hpb=4f607296edf2afa52b0a1287955bba3c28936e37;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/search/SearchOracle.php b/includes/search/SearchOracle.php index cea17d28fc..e14de2c1a5 100644 --- a/includes/search/SearchOracle.php +++ b/includes/search/SearchOracle.php @@ -3,7 +3,7 @@ * Oracle search engine * * Copyright © 2004 Brion Vibber - * http://www.mediawiki.org/ + * https://www.mediawiki.org/ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -89,18 +89,6 @@ class SearchOracle extends SearchDatabase { return new MySQLSearchResultSet( $resultSet, $this->searchTerms ); } - /** - * Return a partial WHERE clause to exclude redirects, if so set - * @return String - */ - function queryRedirect() { - if ( $this->showRedirects ) { - return ''; - } else { - return 'AND page_is_redirect=0'; - } - } - /** * Return a partial WHERE clause to limit the search to the given namespaces * @return String @@ -147,7 +135,6 @@ class SearchOracle extends SearchDatabase { */ function getQuery( $filteredTerm, $fulltext ) { return $this->queryLimit( $this->queryMain( $filteredTerm, $fulltext ) . ' ' . - $this->queryRedirect() . ' ' . $this->queryNamespaces() . ' ' . $this->queryRanking( $filteredTerm, $fulltext ) . ' ' ); } @@ -230,6 +217,7 @@ class SearchOracle extends SearchDatabase { $t = preg_replace( '/([-&|])/', '\\\\$1', $t ); return $t; } + /** * Create or update the search index record for the given page. * Title and text should be pre-processed.