Skip to content

Make script contexts for runtime fields available as part of the Painless execute api #70467

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

Closed
jdconrad opened this issue Mar 16, 2021 · 1 comment · Fixed by #71374
Closed
Assignees
Labels
:Core/Infra/Scripting Scripting abstractions, Painless, and Mustache >enhancement Team:Core/Infra Meta label for core/infra team

Comments

@jdconrad
Copy link
Contributor

Currently, only painless_test, score, and filter contexts are available as part of the Painless execute api. We need to expand this to the runtime fields contexts, so that Painless Lab may be leveraged to build new runtime fields through Painless scripting.

@jdconrad jdconrad added >enhancement :Core/Infra/Scripting Scripting abstractions, Painless, and Mustache labels Mar 16, 2021
@elasticmachine elasticmachine added the Team:Core/Infra Meta label for core/infra team label Mar 16, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

@jdconrad jdconrad self-assigned this Mar 16, 2021
jdconrad added a commit that referenced this issue Apr 14, 2021
This change adds support for the 7 different runtime fields contexts to the Painless Execute API. Each 
context can accept the standard script input (source and params) along with a user-defined document 
and an index name to pull mappings from. The results depend on the output of the runtime field 
type.

Closes #70467
jdconrad added a commit that referenced this issue Apr 14, 2021
This change adds support for the 7 different runtime fields contexts to the Painless Execute API. Each
context can accept the standard script input (source and params) along with a user-defined document
and an index name to pull mappings from. The results depend on the output of the runtime field
type.

Closes #70467
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Core/Infra/Scripting Scripting abstractions, Painless, and Mustache >enhancement Team:Core/Infra Meta label for core/infra team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants