21 lines
1.0 KiB
Markdown
21 lines
1.0 KiB
Markdown
|
---
|
||
|
layout: default
|
||
|
title: Script APIs
|
||
|
parent: REST API reference
|
||
|
has_children: true
|
||
|
nav_order: 160
|
||
|
redirect_from:
|
||
|
- /opensearch/rest-api/script-apis/
|
||
|
---
|
||
|
|
||
|
# Script APIs
|
||
|
|
||
|
The script APIs allow you to work with stored scripts. Stored scripts are part of the cluster state and reduce compilation time and enhance search speed. The default scripting language is Painless.
|
||
|
|
||
|
You perform the following operations on stored scripts:
|
||
|
* [create]({{site.url}}{{site.baseurl}}/opensearch/rest-api/script-apis/create-stored-script/)
|
||
|
* [update]({{site.url}}{{site.baseurl}}/opensearch/rest-api/script-apis/create-stored-script/)
|
||
|
* [execute]({{site.url}}{{site.baseurl}}/opensearch/rest-api/script-apis/exec-stored-script/)
|
||
|
* [retrieve]({{site.url}}{{site.baseurl}}/opensearch/rest-api/script-apis/get-stored-script/)
|
||
|
* [delete]({{site.url}}{{site.baseurl}}/opensearch/rest-api/script-apis/delete-script/)
|
||
|
* You can also retrieve stored [script contexts]({{site.url}}{{site.baseurl}}/opensearch/rest-api/script-apis/get-script-contexts/).
|