diff --git a/docs/images/exponential-decay-keyword-exp-1.png b/docs/images/exponential-decay-keyword-exp-1.png new file mode 100644 index 0000000000000..8ce4eaea42e7c Binary files /dev/null and b/docs/images/exponential-decay-keyword-exp-1.png differ diff --git a/docs/images/exponential-decay-keyword-exp-2.png b/docs/images/exponential-decay-keyword-exp-2.png new file mode 100644 index 0000000000000..367dbd8d8c817 Binary files /dev/null and b/docs/images/exponential-decay-keyword-exp-2.png differ diff --git a/docs/images/linear-decay-keyword-linear-1.png b/docs/images/linear-decay-keyword-linear-1.png new file mode 100644 index 0000000000000..89561267857ba Binary files /dev/null and b/docs/images/linear-decay-keyword-linear-1.png differ diff --git a/docs/images/linear-decay-keyword-linear-2.png b/docs/images/linear-decay-keyword-linear-2.png new file mode 100644 index 0000000000000..fc033458acb6d Binary files /dev/null and b/docs/images/linear-decay-keyword-linear-2.png differ diff --git a/docs/images/normal-decay-keyword-gauss-1.png b/docs/images/normal-decay-keyword-gauss-1.png new file mode 100644 index 0000000000000..99d8af8088b83 Binary files /dev/null and b/docs/images/normal-decay-keyword-gauss-1.png differ diff --git a/docs/images/normal-decay-keyword-gauss-2.png b/docs/images/normal-decay-keyword-gauss-2.png new file mode 100644 index 0000000000000..031e36568bd8c Binary files /dev/null and b/docs/images/normal-decay-keyword-gauss-2.png differ diff --git a/docs/reference/query-languages/query-dsl-function-score-query.md b/docs/reference/query-languages/query-dsl-function-score-query.md index 48918a995640d..2829bd4adac5b 100644 --- a/docs/reference/query-languages/query-dsl-function-score-query.md +++ b/docs/reference/query-languages/query-dsl-function-score-query.md @@ -510,13 +510,11 @@ 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} https://f.cloud.github.com/assets/4320215/768157/cd0e18a6-e898-11e2-9b3c-f0145078bd6f.png -% :alt: cd0e18a6 e898 11e2 9b3c f0145078bd6f -% ::: +:::{image} ../../images/normal-decay-keyword-gauss-1.png +::: -% :::{image} https://f.cloud.github.com/assets/4320215/768160/ec43c928-e898-11e2-8e0d-f3c4519dbd89.png -% :alt: ec43c928 e898 11e2 8e0d f3c4519dbd89 -% ::: +:::{image} ../../images/normal-decay-keyword-gauss-2.png +::: Suppose your original search results matches three hotels : @@ -531,28 +529,21 @@ 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} https://f.cloud.github.com/assets/4320215/768161/082975c0-e899-11e2-86f7-174c3a729d64.png -% :alt: 082975c0 e899 11e2 86f7 174c3a729d64 -% ::: - -% :::{image} https://f.cloud.github.com/assets/4320215/768162/0b606884-e899-11e2-907b-aefc77eefef6.png -% :alt: 0b606884 e899 11e2 907b aefc77eefef6 -% ::: +:::{image} ../../images/exponential-decay-keyword-exp-1.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} https://f.cloud.github.com/assets/4320215/768164/1775b0ca-e899-11e2-9f4a-776b406305c6.png -% :alt: 1775b0ca e899 11e2 9f4a 776b406305c6 -% ::: - -% :::{image} https://f.cloud.github.com/assets/4320215/768165/19d8b1aa-e899-11e2-91bc-6b0553e8d722.png -% :alt: 19d8b1aa e899 11e2 91bc 6b0553e8d722 -% ::: - +:::{image} ../../images/linear-decay-keyword-linear-1.png +::: +:::{image} ../../images/linear-decay-keyword-linear-2.png +::: ## Supported fields for decay functions [_supported_fields_for_decay_functions]