Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/reference/query-dsl/function-score-query.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,10 @@ not. The number value is of type float.
[[function-random]]
==== Random

The `random_score` generates scores that are uniformly distributed in [0, 1[.
By default, it uses the internal Lucene doc ids as a source of randomness,
which is very efficient but unfortunately not reproducible since documents might
be renumbered by merges.
The `random_score` generates scores that are uniformly distributed from 0 up to
but not including 1. By default, it uses the internal Lucene doc ids as a
source of randomness, which is very efficient but unfortunately not
reproducible since documents might be renumbered by merges.

In case you want scores to be reproducible, it is possible to provide a `seed`
and `field`. The final score will then be computed based on this seed, the
Expand Down