Manual:Hooks/SearchGetNearMatchBefore
From MediaWiki.org
| SearchGetNearMatchBefore | |
|---|---|
| Available from version 1.16.0 Perform exact-title-matches in "go" searches before the normal operations. |
|
Define function: |
public static function onSearchGetNearMatchBefore( $allSearchTerms, $titleResult ) { ... }
|
Attach hook: |
$wgHooks['SearchGetNearMatchBefore'][] = 'MyExtensionHooks::onSearchGetNearMatchBefore'; |
| Called from: | SearchEngine.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:SearchGetNearMatchBefore extensions.
[edit] Details
- $allSearchTerms : Array of the search terms in all content languages
- $titleResult : Outparam; the value to return. A Title object or null.