Manual:Hooks/SearchDataForIndex2

Details

 * 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 $revisionRecord: The revision that is being indexed

Add data to search document. Allows an extension to add any data to the field map used to index the document.