13 self::$interwikiResults = [];
22 $lc = MediaWikiServices::getInstance()->getLinkCache();
25 if ( is_callable( $result ) ) {
30 $lc->addGoodLinkObj( mt_rand(), $result->getTitle() );
43 if ( isset( self::$results[
$term ] ) ) {
44 $results = array_slice( self::$results[
$term ], $this->offset, $this->limit );
static SearchResult[][] $results
doSearchText( $term)
Perform a full text search query and return a result set.
static setMockInterwikiResults(array $interwikiResults)
static clearMockResults()
static addMockResults( $query, array $results)
static SearchResultSet[][] $interwikiResults
Contain a class for special pages.
namespace being checked & $result
For QUnit the mediawiki tests qunit testrunner dependency will be added to any module whereas SearchGetNearMatch runs after $term
null for the local wiki Added should default to null in handler for backwards compatibility add a value to it if you want to add a cookie that have to vary cache options can modify $query
The wiki should then use memcached to cache various data To use multiple just add more items to the array To increase the weight of a make its entry a array("192.168.0.1:11211", 2))