35 return Html::rawElement(
'div', [
'class' =>
'searchdidyoumean' ], $html );
54 $stParams = array_merge( $params, $this->specialSearch->powerSearchOptions() );
56 $linkRenderer = $this->specialSearch->getLinkRenderer();
58 if ( $snippet ===
'' || $snippet ===
null ) {
65 get_class( $resultSet ) .
'::getQueryAfterRewriteSnippet returning empty snippet ' .
66 'was deprecated in MediaWiki 1.35',
71 $rewritten = $linkRenderer->makeKnownLink(
72 $this->specialSearch->getPageTitle(),
74 [
'id' =>
'mw-search-DYM-rewritten' ],
80 return $this->specialSearch->msg(
'search-rewritten' )
81 ->rawParams( $rewritten )
99 $stParams = array_merge( $params, $this->specialSearch->powerSearchOptions() );
102 if ( $snippet ===
'' || $snippet ===
null ) {
109 get_class( $resultSet ) .
'::getSuggestionSnippet returning empty snippet ' .
110 'was deprecated in MediaWiki 1.35',
115 $suggest = $this->specialSearch->getLinkRenderer()->makeKnownLink(
116 $this->specialSearch->getPageTitle(),
118 [
'id' =>
'mw-search-DYM-suggestion' ],
122 return $this->specialSearch->msg(
'search-suggest' )
123 ->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()