elasticsearch/docs/reference
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
..
analysis Docs: Update pattern-replace-charfilter.asciidoc 2015-01-29 20:24:08 +01:00
cat [doc] Cat API: show open and closed indices in _cat/indices 2015-03-09 15:45:26 -07:00
cluster API: add pending tasks count to cluster health 2015-02-25 14:58:44 +01:00
docs [REPLICATION] Remove `async` replication 2015-03-19 14:44:21 -07:00
images fixing typo in expDecayFunction and adding offset to all dacay functions 2015-03-05 12:28:08 +01:00
index-modules Small grammar fix. 2015-03-17 11:27:13 -07:00
indices Mappings: Remove delete mapping API 2015-03-24 09:46:02 -07:00
mapping [GEO] fix docs for geo_point "validate" option 2015-03-23 15:34:37 -05:00
migration Remove missed references to delete mapping API 2015-03-24 10:13:19 -07:00
modules Scripting: add support for fine-grained settings 2015-03-26 19:56:55 +01:00
query-dsl Revert "[QUERY] Remove lowercase_expanded_terms and locale options" 2015-03-13 13:51:44 -06:00
search Scripting: add support for fine-grained settings 2015-03-26 19:56:55 +01:00
setup Allow configuration of the GC log file via an environment variable 2015-02-12 17:07:57 +01:00
testing [DOCS] added instructions on how to write parameterized tests 2015-03-19 12:43:51 +01:00
analysis.asciidoc
api-conventions.asciidoc Remove references to the thrift and memcached transport plugins 2015-03-19 20:49:58 +01:00
cat.asciidoc
cluster.asciidoc
docs.asciidoc
getting-started.asciidoc [DOCS] added note about dynamic scriptings and updated links in getting started page 2015-03-19 15:22:39 +01:00
glossary.asciidoc
index-modules.asciidoc Docs: Use the new experimental annotation. 2015-02-05 15:29:45 +01:00
index.asciidoc Updated latest version in docs 2015-02-11 19:25:10 +01:00
indices.asciidoc Mappings: Remove delete mapping API 2015-03-24 09:46:02 -07:00
mapping.asciidoc
modules.asciidoc Remove references to the thrift and memcached transport plugins 2015-03-19 20:49:58 +01:00
query-dsl.asciidoc
search.asciidoc Revert Benchmark API 2015-03-21 10:36:04 +01:00
setup.asciidoc
testing.asciidoc