MediaWiki REL1_39
|
An utility class to rescore search results by looking for an exact match in the db and add the page found to the first position. More...
Public Member Functions | |
rescore ( $search, $namespaces, $srchres, $limit) | |
Default search backend does proper prefix searching, but custom backends may sort based on other algorithms that may cause the exact title match to not be in the results or be lower down the list. | |
An utility class to rescore search results by looking for an exact match in the db and add the page found to the first position.
NOTE: extracted from TitlePrefixSearch
Definition at line 33 of file SearchExactMatchRescorer.php.
SearchExactMatchRescorer::rescore | ( | $search, | |
$namespaces, | |||
$srchres, | |||
$limit ) |
Default search backend does proper prefix searching, but custom backends may sort based on other algorithms that may cause the exact title match to not be in the results or be lower down the list.
string | $search | the query |
int[] | $namespaces | |
string[] | $srchres | results |
int | $limit | the max number of results to return |
Definition at line 44 of file SearchExactMatchRescorer.php.