New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"random_score", acceptable values for "seed" changed between 1.3 and 1.x #8267
Comments
@rjernst could you take a look at this please? Looks like https://github.com/elasticsearch/elasticsearch/pull/7446/files changed from long to int. |
I agree it would be nice to fix it as it is common to provide 64-bits values as seeds (eg. timestamps). Maybe we could internally translate the 64-bits to 32-bits (since we only use 32-bits in practice) in a |
hi there,
we have successfully been using integer representations of javascript Date objects for the "seed" property of the "random_function" scoring function, i.e. output of the following function:
which results in numbers like:
yesterday a colleague built and installed ES from source using the 1.x branch and stumbled upon the following error (it was definitely referring to the value set for "random_score.seed"!)
I am creating this issue because it just might be something that you would consider to be a regression, I have no idea which of the following might be true ... so by all means close this issue if you consider it to be irrelevant :)
hope this is of some use, thanks for reading!
The text was updated successfully, but these errors were encountered: