MediaWiki REL1_35
|
Stable to implement. More...
Public Member Functions | |
onSearchDataForIndex (&$fields, $handler, $page, $output, $engine) | |
Use this hook to add data to search document. | |
Stable to implement.
Definition at line 14 of file SearchDataForIndexHook.php.
MediaWiki\Content\Hook\SearchDataForIndexHook::onSearchDataForIndex | ( | & | $fields, |
$handler, | |||
$page, | |||
$output, | |||
$engine | |||
) |
Use this hook to add data to search document.
Allows you to add any data to the field map used to index the document.
array | &$fields | Array of name => value pairs for fields |
ContentHandler | $handler | ContentHandler for the content being indexed |
WikiPage | $page | WikiPage that is being indexed |
ParserOutput | $output | ParserOutput that is produced from the page |
SearchEngine | $engine | SearchEngine for which the indexing is intended |
Implemented in MediaWiki\HookContainer\HookRunner.