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
This commit is contained in:
Nik Everett 2018-10-30 14:12:59 -04:00 committed by GitHub
parent f9dd33a0b9
commit 2b2e208c4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -208,10 +208,10 @@ not. The number value is of type float.
[[function-random]] [[function-random]]
==== Random ==== Random
The `random_score` generates scores that are uniformly distributed in [0, 1[. The `random_score` generates scores that are uniformly distributed from 0 up to
By default, it uses the internal Lucene doc ids as a source of randomness, but not including 1. By default, it uses the internal Lucene doc ids as a
which is very efficient but unfortunately not reproducible since documents might source of randomness, which is very efficient but unfortunately not
be renumbered by merges. reproducible since documents might be renumbered by merges.
In case you want scores to be reproducible, it is possible to provide a `seed` 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 and `field`. The final score will then be computed based on this seed, the