|
@@ -360,11 +360,11 @@ The `DECAY_FUNCTION` determines the shape of the decay:
|
|
|
`gauss`
|
|
|
: Normal decay, computed as:
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
-where  is computed to assure that the score takes the value `decay` at distance `scale` from `origin`+-`offset`
|
|
|
+where  is computed to assure that the score takes the value `decay` at distance `scale` from `origin`+-`offset`
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
See [Normal decay, keyword `gauss`](#gauss-decay) for graphs demonstrating the curve generated by the `gauss` function.
|
|
|
|
|
@@ -372,11 +372,11 @@ See [Normal decay, keyword `gauss`](#gauss-decay) for graphs demonstrating the c
|
|
|
`exp`
|
|
|
: Exponential decay, computed as:
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
-where again the parameter  is computed to assure that the score takes the value `decay` at distance `scale` from `origin`+-`offset`
|
|
|
+where again the parameter  is computed to assure that the score takes the value `decay` at distance `scale` from `origin`+-`offset`
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
See [Exponential decay, keyword `exp`](#exp-decay) for graphs demonstrating the curve generated by the `exp` function.
|
|
|
|
|
@@ -384,18 +384,18 @@ See [Exponential decay, keyword `exp`](#exp-decay) for graphs demonstrating the
|
|
|
`linear`
|
|
|
: Linear decay, computed as:
|
|
|
|
|
|
-.
|
|
|
+.
|
|
|
|
|
|
where again the parameter `s` is computed to assure that the score takes the value `decay` at distance `scale` from `origin`+-`offset`
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
In contrast to the normal and exponential decay, this function actually sets the score to 0 if the field value exceeds twice the user given scale value.
|
|
|
|
|
|
|
|
|
For single functions the three decay functions together with their parameters can be visualized like this (the field in this example called "age"):
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
### Multi-values fields [_multi_values_fields]
|
|
@@ -510,10 +510,10 @@ Next, we show how the computed score looks like for each of the three possible d
|
|
|
|
|
|
When choosing `gauss` as the decay function in the above example, the contour and surface plot of the multiplier looks like this:
|
|
|
|
|
|
-:::{image} /images/normal-decay-keyword-gauss-1.png
|
|
|
+:::{image} ../images/normal-decay-keyword-gauss-1.png
|
|
|
:::
|
|
|
|
|
|
-:::{image} /images/normal-decay-keyword-gauss-2.png
|
|
|
+:::{image} ../images/normal-decay-keyword-gauss-2.png
|
|
|
:::
|
|
|
|
|
|
Suppose your original search results matches three hotels :
|
|
@@ -529,20 +529,20 @@ Suppose your original search results matches three hotels :
|
|
|
|
|
|
When choosing `exp` as the decay function in the above example, the contour and surface plot of the multiplier looks like this:
|
|
|
|
|
|
-:::{image} /images/exponential-decay-keyword-exp-1.png
|
|
|
+:::{image} ../images/exponential-decay-keyword-exp-1.png
|
|
|
:::
|
|
|
|
|
|
-:::{image} /images/exponential-decay-keyword-exp-2.png
|
|
|
+:::{image} ../images/exponential-decay-keyword-exp-2.png
|
|
|
:::
|
|
|
|
|
|
### Linear decay, keyword `linear` [linear-decay]
|
|
|
|
|
|
When choosing `linear` as the decay function in the above example, the contour and surface plot of the multiplier looks like this:
|
|
|
|
|
|
-:::{image} /images/linear-decay-keyword-linear-1.png
|
|
|
+:::{image} ../images/linear-decay-keyword-linear-1.png
|
|
|
:::
|
|
|
|
|
|
-:::{image} /images/linear-decay-keyword-linear-2.png
|
|
|
+:::{image} ../images/linear-decay-keyword-linear-2.png
|
|
|
:::
|
|
|
|
|
|
## Supported fields for decay functions [_supported_fields_for_decay_functions]
|