Skip to content

[9.0] Avoid nested docs in painless execute api (#127991) #128143

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

Merged
merged 1 commit into from
May 19, 2025

Conversation

rjernst
Copy link
Member

@rjernst rjernst commented May 19, 2025

Backports the following commits to 9.0:

Painless does not support accessing nested docs (except through
_source). Yet the painless execute api indexes any nested docs that are
found when parsing the sample document. This commit changes the ram
indexing to only index the root document, ignoring any nested docs.

fixes elastic#41004
@rjernst rjernst added :Core/Infra/Scripting Scripting abstractions, Painless, and Mustache >bug auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport Team:Core/Infra Meta label for core/infra team labels May 19, 2025
@elasticsearchmachine elasticsearchmachine merged commit 24ddc29 into elastic:9.0 May 19, 2025
16 checks passed
@rjernst rjernst deleted the backport/9.0/pr-127991 branch May 19, 2025 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport >bug :Core/Infra/Scripting Scripting abstractions, Painless, and Mustache Team:Core/Infra Meta label for core/infra team v9.0.2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants