-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Inconsistent behavior when loading docvalues for range fields #53246
Comments
Pinging @elastic/es-search (:Search/Mapping) |
It looks like there was different behavior prior to 7.4: when requesting |
Pinging @elastic/es-analytics-geo (:Analytics/Aggregations) |
Histogram fields have a clear separation here in that they explicitly throw an error when you ask for their ScriptDocValues. I think we should extend this to range fields as well? Either that or expose an object of some kind that returns the range bounds so that they can be used in scripts. |
We decided not to invest in fixing this, so I'm closing it out. The recommended way to load these values is through the new |
Say we've indexed a document with an
integer_range
anddate_range
using version 7.4 (or above):If we specify
"docvalues_fields": ["time_frame"]
during a search, we get an unsupported operation exception because of a failure inDocValueFormat.format
:When specifying
"docvalues_fields": ["expected_attendees"]
, we don't get an error but a binary representation is returned.This behavior seems quite confusing. To me it would be best if we either (1) always returned a nicely formatted representation of the range, or (2) always threw a descriptive error.
The text was updated successfully, but these errors were encountered: