Commit graph

6 commits

Author SHA1 Message Date
James Rodewig
8615ba812e
[DOCS] Fix stored script example snippet (#83056) (#83077)
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

(cherry picked from commit 3845a41804)
2022-01-25 10:42:42 -05:00
James Rodewig
d96796ab39
[7.x] [DOCS] Overhaul search template docs (#72583) (#74796)
* [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.

# Conflicts:
#	docs/reference/search/search-template.asciidoc

* Add `_type` for 7.x docs
2021-06-30 17:33:41 -04:00
James Rodewig
60c940b125 [DOCS] Clarify <script-id> parameter def 2021-04-23 15:05:58 -04:00
James Rodewig
b9c1e355c5 [DOCS] Fix created stored script API request paths 2021-04-23 11:38:25 -04:00
James Rodewig
0350721e97 [DOCS] Correct source param data type 2021-04-19 10:42:38 -04:00
James Rodewig
404e0b92ca
[DOCS] Document create stored script API (#71493) (#71838) 2021-04-19 09:33:20 -04:00