CirrusSearch
Elasticsearch-powered search for MediaWiki
Loading...
Searching...
No Matches
CirrusSearch\CirrusSearchHookRunner Class Reference
+ Inheritance diagram for CirrusSearch\CirrusSearchHookRunner:
+ Collaboration diagram for CirrusSearch\CirrusSearchHookRunner:

Public Member Functions

 __construct (HookContainer $hookContainer)
 
 onCirrusSearchRegisterFullTextQueryClassifiers (Parser\ParsedQueryClassifiersRepository $repository)
 
 onCirrusSearchAddQueryFeatures (SearchConfig $config, array &$extraFeatures)
 This hook is called to register new search keywords.
 
 onCirrusSearchSimilarityConfig (array &$similarityConfig)
 This hook is called register new similarity configurations.
 
 onCirrusSearchAnalysisConfig (array &$config, AnalysisConfigBuilder $analyisConfigBuilder)
 This hook is called to alter the analysis configuration.
 
 onCirrusSearchMappingConfig (array &$mappingConfig, MappingConfigBuilder $mappingConfigBuilder)
 This hook is called to alter the mapping configuration.
 
 onCirrusSearchProfileService (Profile\SearchProfileService $service)
 
 onCirrusSearchScoreBuilder (array $definition, Search\SearchContext $context, ?BoostFunctionBuilder &$builder)
 
- Public Member Functions inherited from CirrusSearch\Hooks\CirrusSearchRegisterFullTextQueryClassifiersHook
 onCirrusSearchRegisterFullTextQueryClassifiers (ParsedQueryClassifiersRepository $repository)
 This hook is called to register FullText query classifiers.
 
- Public Member Functions inherited from CirrusSearch\Hooks\CirrusSearchProfileServiceHook
 onCirrusSearchProfileService (SearchProfileService $service)
 This hook is called to register search profiles.
 
- Public Member Functions inherited from CirrusSearch\Hooks\CirrusSearchScoreBuilderHook
 onCirrusSearchScoreBuilder (array $definition, SearchContext $context, ?BoostFunctionBuilder &$builder)
 

Member Function Documentation

◆ onCirrusSearchAddQueryFeatures()

CirrusSearch\CirrusSearchHookRunner::onCirrusSearchAddQueryFeatures ( SearchConfig $config,
array & $extraFeatures )

This hook is called to register new search keywords.

Parameters
SearchConfig$config
SimpleKeywordFeature[]&$extraFeatures

Implements CirrusSearch\Hooks\CirrusSearchAddQueryFeaturesHook.

◆ onCirrusSearchAnalysisConfig()

CirrusSearch\CirrusSearchHookRunner::onCirrusSearchAnalysisConfig ( array & $config,
AnalysisConfigBuilder $analyisConfigBuilder )

This hook is called to alter the analysis configuration.

Parameters
array&$config
AnalysisConfigBuilder$analyisConfigBuilder

Implements CirrusSearch\Hooks\CirrusSearchAnalysisConfigHook.

◆ onCirrusSearchMappingConfig()

CirrusSearch\CirrusSearchHookRunner::onCirrusSearchMappingConfig ( array & $mappingConfig,
MappingConfigBuilder $mappingConfigBuilder )

This hook is called to alter the mapping configuration.

Parameters
array&$mappingConfig
MappingConfigBuilder$mappingConfigBuilder

Implements CirrusSearch\Hooks\CirrusSearchMappingConfigHook.

◆ onCirrusSearchSimilarityConfig()

CirrusSearch\CirrusSearchHookRunner::onCirrusSearchSimilarityConfig ( array & $similarityConfig)

This hook is called register new similarity configurations.

Parameters
array&$similarityConfig

Implements CirrusSearch\Hooks\CirrusSearchSimilarityConfigHook.


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