James Rodewig
3845a41804
[DOCS] Fix stored script example snippet ( #83056 )
...
Changes:
* Updates the example Painless script to be valid and aligns it with the example in [How to write a script](https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting-using.html#script-stored-scripts ).
* Adds a hidden snippets to delete the script for cleanup.
Relates to https://github.com/elastic/elasticsearch/issues/83038
2022-01-25 10:30:48 -05:00
James Rodewig
3d1cb4944d
[DOCS] Overhaul search template docs ( #72583 )
...
Changes:
* Adds a tutorial for search templates.
* Adds reference docs for the render search template API.
* Improves parameter documentation for the multi search template API.
* Removes duplicate examples from the search template API, multi search API, and create stored script API docs.
* Splits the source files for the search template API and the multi search template API docs.
2021-06-30 16:03:49 -04:00
James Rodewig
94d6978abe
[DOCS] Add missing request section for delete stored script API ( #74240 )
2021-06-17 09:07:32 -04:00
bellengao
6705f9db74
[DOCS] Fix URL of get stored script API ( #74221 )
2021-06-17 09:03:39 -04:00
James Rodewig
0edb8f4708
[DOCS] Document missing script APIs ( #72175 )
...
Documents the following APIs:
* [Delete stored script][0]
* [Get stored script][1]
* [Get script contexts][2]
* [Get script languages][3]
[0]: https://github.com/elastic/elasticsearch/blob/master/rest-api-spec/src/main/resources/rest-api-spec/api/delete_script.json
[1]: https://github.com/elastic/elasticsearch/blob/master/rest-api-spec/src/main/resources/rest-api-spec/api/get_script.json
[2]: https://github.com/elastic/elasticsearch/blob/master/rest-api-spec/src/main/resources/rest-api-spec/api/get_script_context.json
[3]: https://github.com/elastic/elasticsearch/blob/master/rest-api-spec/src/main/resources/rest-api-spec/api/get_script_languages.json
2021-05-04 11:03:30 -04:00
James Rodewig
53fb357da5
[DOCS] Clarify <script-id>
parameter def
2021-04-23 15:05:35 -04:00
James Rodewig
93784444f7
[DOCS] Fix created stored script API request paths
2021-04-23 11:38:06 -04:00
James Rodewig
6dbad503d9
[DOCS] Correct source
param data type
2021-04-19 10:42:22 -04:00
James Rodewig
f9c5f55c4b
[DOCS] Document create stored script API ( #71493 )
2021-04-19 09:19:12 -04:00