Movatterモバイル変換


[0]ホーム

URL:


Jump to content
MediaWiki
Search

Extension:CirrusSearch/Hooks/CirrusSearchMappingConfig

From mediawiki.org
<Extension:CirrusSearch
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.

Details

[edit]
  • $config - multi-dimensional configuration array that contains Elasticsearch document configuration.
    • The'page' index contains configuration for Elasticsearch documents representing pages.
    • The'namespace' index contains namespace configuration for Elasticsearch documents representing namespaces.
  • $builder - instance ofCirrusSearch\Maintenance\MappingConfigBuilder, for easier use of utility methods to build fields.
Retrieved from "https://www.mediawiki.org/w/index.php?title=Extension:CirrusSearch/Hooks/CirrusSearchMappingConfig&oldid=4042104"
Categories:

[8]ページ先頭

©2009-2025 Movatter.jp