6 Commits

Author SHA1 Message Date
Ryan Ernst
8c6d1e0a08 Switch stored script example to script_score query ()
The example use of a scoring script was incorrectly using a filter
script query, which has no scoring, and thus no _score variable
avialable. This commit converts the example doc to using the newer
script_score query.
2019-10-07 17:08:57 -07:00
James Rodewig
e253ee6ba6
[DOCS] Change // CONSOLE comments to [source,console] () () 2019-09-09 12:35:50 -04:00
James Rodewig
5e44e695fd [DOCS] Add template docs to scripts. Reorder template examples. ()
* [DOCS] Add template docs to scripts. Reorder template examples.

* Adds a 'Search template' section to the 'How to use scripts' chapter.
  This links to the 'Search template' chapter for detailed info and
  examples.

* Reorders and retitles several examples in the 'Search template'
  chapter. This is primarily to make examples for storing, deleting, and
  using search templates more prominent.

* Change <templatename> to <templateid>
2019-08-22 08:40:32 -04:00
Ryan Ernst
620cd4cb20 Fix old name of script context in docs ()
The docs contain an example how to limit the scripting contexts allowed,
but the example used an outdated name for the scoring context.

closes 
2019-08-12 09:29:13 -07:00
James Rodewig
d46545f729 [DOCS] Update anchors and links for Elasticsearch API relocation () 2019-07-19 09:18:23 -04:00
James Rodewig
2de919e3a8 [DOCS] Move 'Scripting' section to top-level navigation. () 2019-06-06 10:46:02 -04:00