-
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
Include user parameters in painless reduce script context #42046
Comments
For what it's worth, this is the current workaround I'm using:
|
Pinging @elastic/es-core-infra |
Seems like a bug. Will look into this soon. |
Awesome, thanks for the fast response! |
This fix is now in master for 8.0 and will be backported to 7.3 as well. |
how can I use some aggregated value(for ex sum of any column) which is outside scripted_metric and then use that value in params.foo inside scripted_metric. Please advice |
Hello,
I'd like to request that script parameters be available in scripted metric reduce scripts.
Here's a toy example:
which returns:
IMO it should be pretty common to parameterize reduction (in my case, I want to control a final sort order). Can we throw this on the roadmap?
The text was updated successfully, but these errors were encountered: