Manual:Hooks/SearchUpdate

From MediaWiki.org
Jump to: navigation, search
SearchUpdate
Available from version 1.10.0
Prior to search update completion

Define function:
public static function onSearchUpdate( $id, $namespace, $title, $text ) { ... }

Attach hook:
$wgHooks['SearchUpdate'][] = 'MyExtensionHooks::onSearchUpdate';
Called from: SearchUpdate.php

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


Details[edit]

  • $id : Page id
  • $namespace : Page namespace
  • $title : Page title
  • $text : Current text being indexed