Skip to content

Commit 15d6d29

Browse files
committed
Docs: Remove range notation from random score docs (#35093)
The `random_score` function produces values between 0 (inclusive) and 1 (exclusive) and documented it with fancy methematical range notation. It is so fancy I thought it was a typo. This changes the documentation to use words. Relates to #35084
1 parent bcc8233 commit 15d6d29

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/reference/query-dsl/function-score-query.asciidoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,10 +208,10 @@ not. The number value is of type float.
208208
[[function-random]]
209209
==== Random
210210

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

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

0 commit comments

Comments
 (0)