Просмотр исходного кода

[doc] Correct decay function equations in function_score description

Impact of decay and scale was missing from the equations.

Closes #6983
Britta Weber 11 лет назад
Родитель
Сommit
10201d511c

BIN
docs/reference/images/Exponential.png


BIN
docs/reference/images/Gaussian.png


BIN
docs/reference/images/Linear.png


BIN
docs/reference/images/lambda.png


BIN
docs/reference/images/lambda_calc.png


BIN
docs/reference/images/s_calc.png


BIN
docs/reference/images/sigma.png


BIN
docs/reference/images/sigma_calc.png


+ 16 - 1
docs/reference/query-dsl/queries/function-score-query.asciidoc

@@ -273,18 +273,33 @@ Normal decay, computed as:
 +
 image:images/Gaussian.png[]
 
+where image:images/sigma.png[] is computed to assure that the score takes the value `decay` at distance `scale` from `origin`+-`offset`
+
+image:images/sigma_calc.png[]
+
+[horizontal]
 `exp`::
 
 Exponential decay, computed as:
 +
 image:images/Exponential.png[]
 
+where again the parameter image:images/lambda.png[] is computed to assure that the score takes the value `decay` at distance `scale` from `origin`+-`offset`
 
+image:images/lambda_calc.png[]
+
+[horizontal]
 `linear`::
+
 Linear decay, computed as:
 +
 image:images/Linear.png[].
-+
+
+
+where again the parameter `s` is computed to assure that the score takes the value `decay` at distance `scale` from `origin`+-`offset`
+
+image:images/s_calc.png[]
+
 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.