Skip to content

Commit 3ea9f07

Browse files
committed
Docs: Remove remaining references to file and native scripts (#26580)
relates #25690
1 parent ef8c0b9 commit 3ea9f07

File tree

4 files changed

+5
-22
lines changed

4 files changed

+5
-22
lines changed

docs/reference/aggregations/metrics/extendedstats-aggregation.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ GET /exams/_search
109109
// CONSOLE
110110
// TEST[setup:exams]
111111

112-
This will interpret the `script` parameter as an `inline` script with the `painless` script language and no script parameters. To use a file script use the following syntax:
112+
This will interpret the `script` parameter as an `inline` script with the `painless` script language and no script parameters. To use a stored script use the following syntax:
113113

114114
[source,js]
115115
--------------------------------------------------

docs/reference/modules/plugins.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
Plugins are a way to enhance the basic elasticsearch functionality in a
88
custom manner. They range from adding custom mapping types, custom
9-
analyzers (in a more built in fashion), native scripts, custom discovery
9+
analyzers (in a more built in fashion), custom script engines, custom discovery
1010
and more.
1111

1212
See the {plugins}/index.html[Plugins documentation] for more.

docs/reference/modules/scripting/security.asciidoc

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -47,21 +47,6 @@ Bad:
4747
* Users can write arbitrary scripts, queries, `_search` requests.
4848
* User actions make documents with structure defined by users.
4949

50-
[float]
51-
[[modules-scripting-security-do-no-weaken]]
52-
=== Do not weaken script security settings
53-
By default Elasticsearch will run inline, stored, and filesystem scripts for
54-
the builtin languages, namely the scripting language Painless, the template
55-
language Mustache, and the expression language Expressions. These *ought* to be
56-
safe to expose to trusted users and to your application servers because they
57-
have strong security sandboxes. The Elasticsearch committers do not support any
58-
non-sandboxed scripting languages and using any would be a poor choice because:
59-
1. This drops a layer of security, leaving only Elasticsearch's builtin
60-
<<modules-scripting-other-layers, security layers>>.
61-
2. Non-sandboxed scripts have unchecked access to Elasticsearch's internals and
62-
can cause all kinds of trouble if misused.
63-
64-
6550
[float]
6651
[[modules-scripting-other-layers]]
6752
=== Other security layers

docs/reference/modules/scripting/using.asciidoc

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -178,14 +178,12 @@ DELETE _scripts/calculate-score
178178
=== Script Caching
179179

180180
All scripts are cached by default so that they only need to be recompiled
181-
when updates occur. File scripts keep a static cache and will always reside
182-
in memory. Both inline and stored scripts are stored in a cache that can evict
183-
residing scripts. By default, scripts do not have a time-based expiration, but
181+
when updates occur. By default, scripts do not have a time-based expiration, but
184182
you can change this behavior by using the `script.cache.expire` setting.
185183
You can configure the size of this cache by using the `script.cache.max_size` setting.
186184
By default, the cache size is `100`.
187185

188186
NOTE: The size of stored scripts is limited to 65,535 bytes. This can be
189187
changed by setting `script.max_size_in_bytes` setting to increase that soft
190-
limit, but if scripts are really large then alternatives like
191-
<<modules-scripting-native,native>> scripts should be considered instead.
188+
limit, but if scripts are really large then a
189+
<<modules-scripting-engine,native script engine>> should be considered.

0 commit comments

Comments
 (0)