OpenSearch/docs/reference/search
javanna d9d1e6a67a Scripting: add support for fine-grained settings
Allow to on/off scripting based on their source (where they get loaded from), the  operation that executes them and their language.

The settings cover the following combinations:

- mode: on, off, sandbox
- source: indexed, dynamic, file
- engine: groovy, expressions, mustache, etc
- operation: update, search, aggs, mapping

The following settings are supported for every engine:

script.engine.groovy.indexed.update:    sandbox/on/off
script.engine.groovy.indexed.search:    sandbox/on/off
script.engine.groovy.indexed.aggs:      sandbox/on/off
script.engine.groovy.indexed.mapping:   sandbox/on/off
script.engine.groovy.dynamic.update:    sandbox/on/off
script.engine.groovy.dynamic.search:    sandbox/on/off
script.engine.groovy.dynamic.aggs:      sandbox/on/off
script.engine.groovy.dynamic.mapping:   sandbox/on/off
script.engine.groovy.file.update:       sandbox/on/off
script.engine.groovy.file.search:       sandbox/on/off
script.engine.groovy.file.aggs:         sandbox/on/off
script.engine.groovy.file.mapping:      sandbox/on/off

For ease of use, the following more generic settings are supported too:

script.indexed: sandbox/on/off
script.dynamic: sandbox/on/off
script.file:    sandbox/on/off

script.update:  sandbox/on/off
script.search:  sandbox/on/off
script.aggs:    sandbox/on/off
script.mapping: sandbox/on/off

These will be used to calculate the more specific settings, using the stricter setting of each combination. Operation based settings have precedence over conflicting source based ones.

Note that the `mustache` engine is affected by generic settings applied to any language, while native scripts aren't as they are static by definition.

Also, the previous `script.disable_dynamic` setting can now be deprecated.

Closes #6418
Closes #10116
Closes #10274
2015-03-26 19:56:55 +01:00
..
aggregations [DOCS] add missing comma in percentile_rank aggregation example 2015-03-10 08:21:06 -07:00
request Revert "Rest: Add json in request body to scroll, clear scroll, and analyze API" 2015-03-23 12:57:19 +01:00
suggesters Mappings: Remove `index_analyzer` setting to simplify analyzer logic 2015-01-28 13:43:15 -08:00
aggregations.asciidoc [Aggregations] Meta data support 2014-11-03 22:32:23 +01:00
count.asciidoc Docs: Use the new experimental annotation. 2015-02-05 15:29:45 +01:00
exists.asciidoc Search Exists API: Checks if any matching documents exist for a given query 2014-07-31 15:42:30 -04:00
explain.asciidoc Revert "[QUERY] Remove lowercase_expanded_terms and locale options" 2015-03-13 13:51:44 -06:00
facets.asciidoc Facets: Removal from master. 2014-08-21 10:34:39 +02:00
more-like-this.asciidoc Added the ability to include the queried document for More Like This API. 2014-05-09 12:59:39 +02:00
multi-search.asciidoc Facets: Removal from master. 2014-08-21 10:34:39 +02:00
percolate.asciidoc [DOCS] Fix typos in percolate.asciidoc 2015-03-21 10:23:15 +01:00
request-body.asciidoc Docs: Use the new experimental annotation. 2015-02-05 15:29:45 +01:00
search-shards.asciidoc Docs: Fixed path to search-shards 2014-07-26 15:05:53 +02:00
search-template.asciidoc Scripting: add support for fine-grained settings 2015-03-26 19:56:55 +01:00
search.asciidoc [DOCS] Corrected syntax error in search curl cmd 2014-11-12 17:21:19 +01:00
suggesters.asciidoc Update suggesters.asciidoc 2014-09-28 11:04:28 +02:00
uri-request.asciidoc Revert "[QUERY] Remove lowercase_expanded_terms and locale options" 2015-03-13 13:51:44 -06:00
validate.asciidoc Docs: Removed all the added/deprecated tags from 1.x 2014-09-26 21:04:42 +02:00