Boosts documents in user language and in wiki language if different Uses getUserLanguage in SearchConfig and LanguageCode for language values and CirrusSearchLanguageWeight['user'|'wiki'] for respective weights.
More...
|
| getOverriddenFactor ( $value) |
| Utility method to extract a factor (float) that can be overridden by a config value or an URI param.
|
|
| $config |
|
| $weight |
|
Boosts documents in user language and in wiki language if different Uses getUserLanguage in SearchConfig and LanguageCode for language values and CirrusSearchLanguageWeight['user'|'wiki'] for respective weights.
◆ __construct()
CirrusSearch\Search\Rescore\LangWeightFunctionScoreBuilder::__construct |
( |
SearchConfig | $config, |
|
|
| $weight, |
|
|
| $userLang = null ) |
- Parameters
-
SearchConfig | $config | |
float | $weight | |
string | null | $userLang | |
◆ append()
CirrusSearch\Search\Rescore\LangWeightFunctionScoreBuilder::append |
( |
FunctionScore | $container | ) |
|
The documentation for this class was generated from the following file:
- includes/Search/Rescore/LangWeightFunctionScoreBuilder.php