Commit graph

6 commits

Author SHA1 Message Date
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
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