MediaWiki master
|
This is a hook handler interface, see docs/Hooks.md. More...
Inherited by MediaWiki\HookContainer\HookRunner.
Public Member Functions | |
onSearchDataForIndex2 (array &$fields, ContentHandler $handler, WikiPage $page, ParserOutput $output, SearchEngine $engine, RevisionRecord $revision) | |
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 18 of file SearchDataForIndex2Hook.php.
MediaWiki\Content\Hook\SearchDataForIndex2Hook::onSearchDataForIndex2 | ( | array & | $fields, |
ContentHandler | $handler, | ||
WikiPage | $page, | ||
ParserOutput | $output, | ||
SearchEngine | $engine, | ||
RevisionRecord | $revision ) |
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 |
RevisionRecord | $revision | RevisionRecord being indexed |
Implemented in MediaWiki\HookContainer\HookRunner.