-
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
Runtime fields emit function doesn't work in lambda or functions #68235
Labels
:Core/Infra/Scripting
Scripting abstractions, Painless, and Mustache
>enhancement
Team:Core/Infra
Meta label for core/infra team
Comments
nik9000
added
the
:Search/Search
Search-related issues that do not fall into other categories
label
Jan 29, 2021
Pinging @elastic/es-search (Team:Search) |
javanna
added
the
:Core/Infra/Scripting
Scripting abstractions, Painless, and Mustache
label
Mar 3, 2021
Pinging @elastic/es-core-infra (Team:Core/Infra) |
stu-elastic
added a commit
to stu-elastic/elasticsearch
that referenced
this issue
Jun 17, 2021
User defined functions are instance methods on the Script class. Update lambdas and method references to capture the script `this` reference. Def method encoding string takes an extra char at index 1, whether to capture the script reference. For runtime fields, this means emit, which is an script instance method already, now works in user defined functions. Fixes: elastic#69742 Refs: elastic#68235
stu-elastic
added a commit
that referenced
this issue
Jul 1, 2021
User defined functions are instance methods on the Script class. Update lambdas and method references to capture the script `this` reference. Def method encoding string takes an extra char at index 1, whether to capture the script reference. For runtime fields, this means emit, which is an script instance method already, now works in user defined functions. Fixes: #69742 Refs: #68235
stu-elastic
added a commit
to stu-elastic/elasticsearch
that referenced
this issue
Jul 1, 2021
User defined functions are instance methods on the Script class. Update lambdas and method references to capture the script `this` reference. Def method encoding string takes an extra char at index 1, whether to capture the script reference. For runtime fields, this means emit, which is an script instance method already, now works in user defined functions. Fixes: elastic#69742 Refs: elastic#68235 Backport: e26fa4e
stu-elastic
added a commit
to stu-elastic/elasticsearch
that referenced
this issue
Jul 1, 2021
User defined functions are instance methods on the Script class. Update lambdas and method references to capture the script `this` reference. Def method encoding string takes an extra char at index 1, whether to capture the script reference. For runtime fields, this means emit, which is an script instance method already, now works in user defined functions. Fixes: elastic#69742 Refs: elastic#68235 Backport: e26fa4e
stu-elastic
added a commit
that referenced
this issue
Jul 1, 2021
User defined functions are instance methods on the Script class. Update lambdas and method references to capture the script `this` reference. Def method encoding string takes an extra char at index 1, whether to capture the script reference. For runtime fields, this means emit, which is an script instance method already, now works in user defined functions. Fixes: #69742 Refs: #68235 Backport: e26fa4e
javanna
removed
:Search/Search
Search-related issues that do not fall into other categories
Team:Search
Meta label for search team
labels
Jun 16, 2022
This was fixed by e9800bd |
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
Runtime fields are defined by a painless script, like, say:
At the moment the
emit
function that isn't available in lambdas or function. So you can't do this:Or this:
These are both unfortunate but, at the moment, not show stopper issues. At least, we don't think they are because we wrote a ton of runtime field examples before we encountered the limitation. We'd like to get t working anyway though. Folks like lambdas and method are useful.
The text was updated successfully, but these errors were encountered: