-
Notifications
You must be signed in to change notification settings - Fork 18
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
Long Integer Search Failures #320
Comments
Hey @johnmichaelmurner thanks for opening an issue! This sounds like a good change to me. Are you open to submitting a PR with this change? I am not sure what the initial reasoning was for converting longs to double. It could have been to save disk space and maybe improve performance. From a brief google session, I have found any documentation on performance and disk space comparison between long and double in Elasticsearch. |
Hello @jamesfisher-geo, I am attempting to push local branch ( Using
|
Fork the repo to your Github account and push your changes to a new branch there. You can then open a PR to add your changes to the main branch here. |
Describe the bug
Integer searches larger than
2 ^ 31 -1
(es long limit) yield invalid results, returns non matching items for queried attribute.However if you change the dynamic mapping here to:
The current code suggest numerics are cast from long to float, but a long (
2^63 -1
) is not a float and may be a larger integer than a float's capacity (2^31-1
).I'm curious if there was an intential decision to use long -> float as it appears to lead to unwanted behavior. I have had success searching when mapping configured
long->double
. There may be space impacts with 32-bit vs 64-bit attributes.To Reproduce
Execute test below in test_api
Expected behavior
Return only the valid result
Additional context
Add any other context about the problem here.
I am unable currently to run the test recast as double in this repo, but have tested this configuration on a fork.
The text was updated successfully, but these errors were encountered: