-
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
Universal fields API #61388
Comments
Pinging @elastic/es-core-infra (:Core/Infra/Scripting) |
Pinging @elastic/es-search (:Search/Mapping) |
I was actually hoping to go the other way around. With runtime fields coming, there's much less incentive to leave fields unmapped and I hope the more common practice will be to dynamically map fields as runtime fields, e.g. with a dynamic template:
If we do that, then we won't even need |
@jpountz How do you envision that working for nested documents? Currently nested docs cannot be accessed through doc values. |
I don't know how that could work but I wonder if this is really a scripting problem as queries and aggregations have the same limitation: you can't leverage nested fields unless you enter a nested context via the |
It's a problem in scripting for ingest, where a user may want to manipulate nested docs in source. I agree on the search side nested queries/aggs should be used. |
Adds minimal fields API support to sort and score scripts. Example: `field('myfield').getValue(123)` where `123` is the default if the field has no values. Refs: #61388
Adds minimal fields API support to sort and score scripts. Example: `field('myfield').getValue(123)` where `123` is the default if the field has no values. Refs: elastic#61388 Backport: 6c02a6c
Pinging @elastic/es-core-infra (Team:Core/Infra) |
Rather than requiring users to use standard list and map objects to deal with field access, update, etc. We should expose an API that facilitates these operations while making it easy to handle fields that do not currently exist.
Users should be able to use the API to access fields in either doc values or source, where the implementation can pick the most performant option (doc values).
The text was updated successfully, but these errors were encountered: