MediaWiki  master
SearchIndexFieldsHook.php
Go to the documentation of this file.
1 <?php
2 
3 namespace MediaWiki\Search\Hook;
4 
5 use SearchEngine;
7 
25  public function onSearchIndexFields( &$fields, $engine );
26 }
Contain a class for special pages.
This is a hook handler interface, see docs/Hooks.md.
onSearchIndexFields(&$fields, $engine)
Use this hook to add fields to search index mapping.
Definition of a mapping for the search index field.