|
MediaWiki REL1_39
|
This is a hook handler interface, see docs/Hooks.md. More...

Public Member Functions | |
| onSearchDataForIndex (&$fields, $handler, $page, $output, $engine) | |
| Use this hook to add data to search document. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "SearchDataForIndex" to register handlers implementing this interface.
Definition at line 17 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.