| CirrusSearchMappingConfig | |
|---|---|
| Available from version 1.24.0 (Gerrit change 104766) Allows configuration of the mapping of fields | |
| Define function: | publicstaticfunctiononCirrusSearchMappingConfig(array&$config,MappingConfigBuilder$builder){...} |
| Attach hook: | $wgHooks['CirrusSearchMappingConfig'][]='MyExtensionHooks::onCirrusSearchMappingConfig'; |
| Called from: | File(s):CirrusSearch / includes/Maintenance/MappingConfigBuilder.php |
For more information about attaching hooks, seeManual:Hooks.
For examples of other extensions using this hook, seeCategory:CirrusSearchMappingConfig extensions.
$config - multi-dimensional configuration array that contains Elasticsearch document configuration.'page' index contains configuration for Elasticsearch documents representing pages.'namespace' index contains namespace configuration for Elasticsearch documents representing namespaces.$builder - instance ofCirrusSearch\Maintenance\MappingConfigBuilder, for easier use of utility methods to build fields.