MediaWiki REL1_35
MediaWiki\Search\Hook\SearchIndexFieldsHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Search\Hook\SearchIndexFieldsHook:

Public Member Functions

 onSearchIndexFields (&$fields, $engine)
 Use this hook to add fields to search index mapping.
 

Detailed Description

Stable to implement.

Definition at line 12 of file SearchIndexFieldsHook.php.

Member Function Documentation

◆ onSearchIndexFields()

MediaWiki\Search\Hook\SearchIndexFieldsHook::onSearchIndexFields ( $fields,
  $engine 
)

Use this hook to add fields to search index mapping.

Since
1.35
Parameters
SearchIndexField[]&$fieldsArray of fields, all implement SearchIndexField
SearchEngine$engineSearchEngine instance for which mapping is being built
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: