MediaWiki REL1_33
|
Public Member Functions | |
__construct ( $suggestion=null, $rewrittenQuery=null, array $results=[], $containedSyntax=false) | |
expandResults () | |
getQueryAfterRewrite () | |
getQueryAfterRewriteSnippet () | |
getSuggestionQuery () | |
getSuggestionSnippet () | |
getTotalHits () | |
Some search modes return a total hit count for the query in the entire article database. | |
hasRewrittenQuery () | |
Some search modes will run an alternative query that it thinks gives a better result than the provided search. | |
hasSuggestion () | |
Some search modes return a suggested alternate term if there are no exact hits. | |
Public Member Functions inherited from SearchResultSet | |
__construct ( $containedSyntax=false, $hasMoreResults=false) | |
augmentResult (SearchResult $result) | |
Returns extra data for specific result and store it in SearchResult object. | |
count () | |
extractResults () | |
Extract all the results in the result set as array. | |
extractTitles () | |
Extract all the titles in the result set. | |
free () | |
Frees the result set, if applicable. | |
getInterwikiResults ( $type=self::SECONDARY_RESULTS) | |
Return a result set of hits on other (multiple) wikis associated with this one. | |
getIterator () | |
getOffset () | |
hasInterwikiResults ( $type=self::SECONDARY_RESULTS) | |
Check if there are results on other wikis. | |
hasMoreResults () | |
next () | |
Fetches next search result, or false. | |
numRows () | |
rewind () | |
Rewind result set back to beginning. | |
searchContainedSyntax () | |
Did the search contain search syntax? If so, Special:Search won't offer the user a link to a create a page named by the search string because the name would contain the search syntax. | |
setAugmentedData ( $name, $data) | |
Sets augmented data for result set. | |
shrink ( $limit) | |
termMatches () | |
Fetch an array of regular expression fragments for matching the search terms as parsed by this engine in a text extract. | |
Protected Attributes | |
$results | |
$suggestion | |
Protected Attributes inherited from SearchResultSet | |
$containedSyntax = false | |
Types of interwiki results. | |
array[] | $extraData = [] |
Set of result's extra data, indexed per result id and then per data item name. | |
SearchResult[] | $results |
Cache of results - serialization of the result iterator as an array. | |
Definition at line 254 of file SpecialSearchTest.php.
SpecialSearchTestMockResultSet::__construct | ( | $suggestion = null, | |
$rewrittenQuery = null, | |||
array | $results = [], | ||
$containedSyntax = false ) |
Definition at line 258 of file SpecialSearchTest.php.
References SearchResultSet\$containedSyntax, $results, $suggestion, and and().
SpecialSearchTestMockResultSet::expandResults | ( | ) |
Definition at line 270 of file SpecialSearchTest.php.
References $results.
SpecialSearchTestMockResultSet::getQueryAfterRewrite | ( | ) |
Reimplemented from SearchResultSet.
Definition at line 294 of file SpecialSearchTest.php.
References and().
SpecialSearchTestMockResultSet::getQueryAfterRewriteSnippet | ( | ) |
Reimplemented from SearchResultSet.
Definition at line 298 of file SpecialSearchTest.php.
References and().
SpecialSearchTestMockResultSet::getSuggestionQuery | ( | ) |
Reimplemented from SearchResultSet.
Definition at line 282 of file SpecialSearchTest.php.
References $suggestion.
SpecialSearchTestMockResultSet::getSuggestionSnippet | ( | ) |
Reimplemented from SearchResultSet.
Definition at line 286 of file SpecialSearchTest.php.
References $suggestion.
SpecialSearchTestMockResultSet::getTotalHits | ( | ) |
Some search modes return a total hit count for the query in the entire article database.
This may include pages in namespaces that would not be matched on the given settings.
Return null if no total hits number is supported.
Reimplemented from SearchResultSet.
Definition at line 274 of file SpecialSearchTest.php.
References SearchResultSet\numRows().
SpecialSearchTestMockResultSet::hasRewrittenQuery | ( | ) |
Some search modes will run an alternative query that it thinks gives a better result than the provided search.
Returns true if this has occurred.
Reimplemented from SearchResultSet.
Definition at line 290 of file SpecialSearchTest.php.
SpecialSearchTestMockResultSet::hasSuggestion | ( | ) |
Some search modes return a suggested alternate term if there are no exact hits.
Returns true if there is one on this set.
Reimplemented from SearchResultSet.
Definition at line 278 of file SpecialSearchTest.php.
|
protected |
Definition at line 255 of file SpecialSearchTest.php.
Referenced by __construct(), and expandResults().
|
protected |
Definition at line 256 of file SpecialSearchTest.php.
Referenced by __construct(), getSuggestionQuery(), and getSuggestionSnippet().