34 return "<div class='searchdidyoumean'>$html</div>";
53 $stParams = array_merge( $params, $this->specialSearch->powerSearchOptions() );
55 $linkRenderer = $this->specialSearch->getLinkRenderer();
57 if ( $snippet ===
'' || $snippet ===
null ) {
64 get_class( $resultSet ) .
'::getQueryAfterRewriteSnippet returning empty snippet ' .
65 'was deprecated in MediaWiki 1.35',
70 $rewritten = $linkRenderer->makeKnownLink(
71 $this->specialSearch->getPageTitle(),
73 [
'id' =>
'mw-search-DYM-rewritten' ],
77 $stParams[
'search'] = $term;
78 $stParams[
'runsuggestion'] = 0;
79 $original = $linkRenderer->makeKnownLink(
80 $this->specialSearch->getPageTitle(),
82 [
'id' =>
'mw-search-DYM-original' ],
86 return $this->specialSearch->msg(
'search-rewritten' )
87 ->rawParams( $rewritten, $original )
104 $stParams = array_merge( $params, $this->specialSearch->powerSearchOptions() );
107 if ( $snippet ===
'' || $snippet ===
null ) {
114 get_class( $resultSet ) .
'::getSuggestionSnippet returning empty snippet ' .
115 'was deprecated in MediaWiki 1.35',
120 $suggest = $this->specialSearch->getLinkRenderer()->makeKnownLink(
121 $this->specialSearch->getPageTitle(),
123 [
'id' =>
'mw-search-DYM-suggestion' ],
127 return $this->specialSearch->msg(
'search-suggest' )
128 ->rawParams( $suggest )->parse();
wfDeprecatedMsg( $msg, $version=false, $component=false, $callerOffset=2)
Log a deprecation warning with arbitrary message text.
implements Special:Search - Run text & title search and display the output
A set of SearchEngine results.
hasRewrittenQuery()
Some search modes will run an alternative query that it thinks gives a better result than the provide...
hasSuggestion()
Some search modes return a suggested alternate term if there are no exact hits.
getQueryAfterRewriteSnippet()