* to not be in the results or be lower down the list.
* @param string $search the query
* @param int[] $namespaces the namespaces
* to not be in the results or be lower down the list.
* @param string $search the query
* @param int[] $namespaces the namespaces
* @return string[] munged results
*/
public function rescore( $search, $namespaces, $srchres, $limit ) {
// Pick namespace (based on PrefixSearch::defaultSearchBackend)
* @return string[] munged results
*/
public function rescore( $search, $namespaces, $srchres, $limit ) {
// Pick namespace (based on PrefixSearch::defaultSearchBackend)
$t = Title::newFromText( $search, $ns );
if ( !$t || !$t->exists() ) {
// No exact match so just return the search results
$t = Title::newFromText( $search, $ns );
if ( !$t || !$t->exists() ) {
// No exact match so just return the search results