Skip to content

Commit

Permalink
Add link to script score query in the top level docs (elastic#36416)
Browse files Browse the repository at this point in the history
* add link to script score query in the top level docs

* Correct references in script-score-query.asciidoc
  • Loading branch information
jimczi authored and mayya-sharipova committed Dec 19, 2018
1 parent 9584adf commit 667c06d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/reference/query-dsl/script-score-query.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ GET /_search
==== Accessing the score of a document within a script

Within a script, you can
<<modules-scripting-fields#scripting-score, access>>
{ref}/modules-scripting-fields.html#scripting-score[access]
the `_score` variable which represents the current relevance score of a
document.

Expand Down Expand Up @@ -132,8 +132,8 @@ these unique values need to be loaded into memory.

[[decay-functions]]
===== Decay functions for numeric fields
You can read more about decay functions
<<query-dsl-function-score-query#function-decay, here>>.
You can read more about decay functions
{ref}/query-dsl-function-score-query.html#function-decay[here].

* `double decayNumericLinear(double origin, double scale, double offset, double decay, double docValue)`
* `double decayNumericExp(double origin, double scale, double offset, double decay, double docValue)`
Expand Down
6 changes: 6 additions & 0 deletions docs/reference/query-dsl/special-queries.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ or collection of documents.
This query allows a script to act as a filter. Also see the
<<query-dsl-function-score-query,`function_score` query>>.

<<query-dsl-script-score-query,`script_score` query>>::

A query that allows to modify the score of a sub-query with a script.

<<query-dsl-percolate-query,`percolate` query>>::

This query finds queries that are stored as documents that match with
Expand All @@ -32,6 +36,8 @@ include::mlt-query.asciidoc[]

include::script-query.asciidoc[]

include::script-score-query.asciidoc[]

include::percolate-query.asciidoc[]

include::feature-query.asciidoc[]
Expand Down

0 comments on commit 667c06d

Please sign in to comment.