Saturation function based on x/(k+x), k is a parameter to control how fast the function saturates.
More...
|
| getOverriddenFactor ( $value) |
| Utility method to extract a factor (float) that can be overridden by a config value or an URI param.
|
|
| $config |
|
| $weight |
|
Saturation function based on x/(k+x), k is a parameter to control how fast the function saturates.
NOTE: that satu is always 0.5 when x == k. Parameter a is added to form a sigmoid : x^a/(k^a+x^a) Based on http://research.microsoft.com/pubs/65239/craswell_sigir05.pdf This function is suited to apply a new factor in a weighted sum.
◆ __construct()
CirrusSearch\Search\Rescore\SatuFunctionScoreBuilder::__construct |
( |
SearchConfig | $config, |
|
|
| $weight, |
|
|
| $profile ) |
- Parameters
-
SearchConfig | $config | |
float | $weight | |
array | $profile | |
- Exceptions
-
InvalidRescoreProfileException | |
◆ append()
CirrusSearch\Search\Rescore\SatuFunctionScoreBuilder::append |
( |
FunctionScore | $container | ) |
|
◆ getScript()
CirrusSearch\Search\Rescore\SatuFunctionScoreBuilder::getScript |
( |
| ) |
|
The documentation for this class was generated from the following file:
- includes/Search/Rescore/SatuFunctionScoreBuilder.php