Manual:Hooks/CirrusSearchBuildDocumentFinishBatch

From MediaWiki.org
Jump to navigation Jump to search
CirrusSearchBuildDocumentFinishBatch
Available from version 1.23.0
Called when a batch of pages has been indexed
Define function:
public static function onCirrusSearchBuildDocumentFinishBatch( array $pages ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"CirrusSearchBuildDocumentFinishBatch": "MyExtensionHooks::onCirrusSearchBuildDocumentFinishBatch"
	}
}

For MediaWiki ≤1.25:

$wgHooks['CirrusSearchBuildDocumentFinishBatch'][] = 'MyExtensionHooks::onCirrusSearchBuildDocumentFinishBatch';
Called from:File(s): Updater.php

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

This hook is a part of CirrusSearch extension .

Details[edit]

  • $pages - list of WikiPage objects which have been indexed.

See also[edit]