elastic / elasticsearch

Free and Open Source, Distributed, RESTful Search Engine
https://www.elastic.co/products/elasticsearch
Other
928 stars 24.81k forks source link

Add Access to Painless Annotations in Plugins #43656

Open jdconrad opened 5 years ago

jdconrad commented 5 years ago

Painless now supports adding annotations to whitelist objects (https://github.com/elastic/elasticsearch/pull/43239). However, there is currently no way to access useful information from the annotations within either the Painless scripting engine or in plugins. A callback mechanism needs to be added to the PainlessLookup to inform potential listeners when a whitelisted object with an annotation is compiled or bound.

elasticmachine commented 5 years ago

Pinging @elastic/es-core-infra

elasticsearchmachine commented 2 years ago

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