Manual:Hooks/SearchGetNearMatchComplete

From MediaWiki.org
Jump to: navigation, search
SearchGetNearMatchComplete
Available from version 1.16.0
A chance to modify exact-title-matches in "go" searches.

Define function:
public static function onSearchGetNearMatchComplete( $term, $title ) { ... }

Attach hook:
$wgHooks['SearchGetNearMatchComplete'][] = 'MyExtensionHooks::onSearchGetNearMatchComplete';
Called from: SearchEngine.php

For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:SearchGetNearMatchComplete extensions.


[edit] Details

  • $term : Search term string
  • $title : Current Title object that is being returned (null if none found)
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox