--- mapped_pages: - https://www.elastic.co/guide/en/elasticsearch/painless/current/painless-scripts.html products: - id: painless --- # Scripts [painless-scripts] Scripts are composed of one-to-many [statements](/reference/scripting-languages/painless/painless-statements.md) and are run in a sandbox that determines what local variables are immediately available along with what APIs are allowed.