-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Replace aggregation key
with formatted values
#18518
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
Comments
As a note, |
@jpountz is this still something you think we should do? /cc @elastic/es-search-aggs |
@jpountz reviving this, maybe, do you think we should just return the string valued keys? Not the "native" keys? |
@nik9000 Yes, we shouldn't leak the internal representation of the data to our users. It makes the API look ugly and makes changing the way our field types are implemented breaking. Ideally we would make keys go through |
Got it. |
*_as_string
from the output of aggregationskey
with formatted values
Related (possibly a dup of) #63898 |
I thin it would be better if one could choose between internal representation, |
closing as not planned. |
Many aggregations provide two representations of aggregated values, such as
key
andkey_as_string
in terms/histogram aggregations. This is annoying because this is duplicate information and thekey
return value leaks the internal representation of data in doc values. For instance this forced us to break the response of terms or range aggregations onip
fields when we added ipv6 support since we do not store ip addresses in a number anymore. We should return a singlekey
parameter and dropkey_as_string
.The text was updated successfully, but these errors were encountered: