Files
elasticsearch-js/docs/reference/api/Script.md
2025-05-28 10:02:30 -05:00

10 lines
536 B
Markdown

# `Script` [interface-Script]
| Name | Type | Description |
| - | - | - |
| `id` | [Id](./Id.md) | The `id` for a stored script. |
| `lang` | [ScriptLanguage](./ScriptLanguage.md) | Specifies the language the script is written in. |
| `options` | Record<string, string> | &nbsp; |
| `params` | Record<string, any> | Specifies any named parameters that are passed into the script as variables. Use parameters instead of hard-coded values to decrease compile time. |
| `source` | [ScriptSource](./ScriptSource.md) | The script source. |