Allow scripted_field values to dynamically recalculate with refresh interval #12650
Labels
Feature:Discover
Discover Application
release_note:enhancement
Team:DataDiscovery
Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL.
Describe the feature:
It would be really useful to be able to opt scripted_fields out of request caching. Here is an example of a scripted_field that produces different output each time the Painless script in it runs.
Example
The Duration till Now field's value gets calculated on initial page load. After that it's cached, it doesn't update each time the automatic refresh happens. The caching behavior doesn't allow for dynamically recalculating query values. It would very powerful and a nice user experience to be able to have Painless scripted_fields rerun each time the refresh interval fires. If possible it would be nice to be able to configure each scripted_field to opt in/out of caching on an individual basis.
The text was updated successfully, but these errors were encountered: