-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Support for a fully numeric flattened field #61550
Comments
Pinging @elastic/es-search (:Search/Mapping) |
Once we have this field, I guess the next question will be how to deal with objects that have a mix of strings and numbers. This makes me wonder whether we should try to fold this functionality into the existing
so that an object like
would have its |
@polyfractal brought up the good point that in some telemetry use cases, all values represent counts. This type of data is similar to a histogram, but with labeled buckets. For example, we could be tracking the usage of every aggregation:
It would be natural to perform a histogram-like aggregation on |
I similar fashion this feature might be useful for ML use cases. It seems to me that being able to specify the sub-type ( |
Does this issue cover support for |
+1, following. This feature will unblock the ability to remove nested fields in a use case I have 😁 |
+1, following. I need to have numeric(float) flattened fields to use on thousands of unique field names with field_value_factor functions.. Currently, I had to increase default mapping count but it's bad practice as doc said. |
+1, following! |
+1. It would really help in storing lots of financial information without a mapping explosion. |
+1 |
1 similar comment
+1 |
While this is being worked upon, I am able to way around Example: Index Mappings
Sample documents
Sample Range Query
This serves me well for the use-case at hand. And I understand the performance implications of query time runtime fields and the trade-off is acceptable in my case. However being new to ES, wanted to validate here - if I am over-looking anything obvious or any other feedback? Thanks, |
To follow up and update on the use case in Elastic APM (#61550 (comment)): We're not planning to use flattened. Instead, we'll use I'm sure there are other valid use cases for numeric flattened fields, though, such as avoiding field explosions. Having said that, we're also working on a new way of dealing with field explosions by ignoring fields that exceed the limit instead of rejecting documents: #96235 |
+1 need numeric fields in flattened types to be fully supported for range queries |
Pinging @elastic/es-search-foundations (Team:Search Foundations) |
This issue is a spinoff of #43805 that focuses on a specific use case: supporting numeric fields in the flattened field.
We've discussed this internally and agreed that it is something that we'd like to provide.
This new field could be considered as the numeric version of the flattened field where all values should be parseable as numbers. The details of the implementation are still unclear but multiple ideas were shared internally:
We could reuse the framework added for the
rank_feature
query where field names could be indexed as terms and values as frequencies.We could use points with multiple dimensions and/or prefixes/suffixes to index the pair field name, value.
This issue is a placeholder to provide feedback and updates on the overall plan (supporting a fully numeric flattened field).
The text was updated successfully, but these errors were encountered: