瀏覽代碼

Docs: Fixed broken cross doc links to script topics.

debadair 9 年之前
父節點
當前提交
e49d21bdd6
共有 2 個文件被更改,包括 12 次插入12 次删除
  1. 6 6
      docs/plugins/lang-javascript.asciidoc
  2. 6 6
      docs/plugins/lang-python.asciidoc

+ 6 - 6
docs/plugins/lang-javascript.asciidoc

@@ -48,7 +48,7 @@ Scripting is available in many APIs, but we will use an example with the
 WARNING: Enabling inline scripting on an unprotected Elasticsearch cluster is dangerous.
 See <<lang-javascript-file>> for a safer option.
 
-If you have enabled {ref}/modules-scripting.html#enable-dynamic-scripting[inline scripts],
+If you have enabled {ref}/modules-scripting-security.html#enable-dynamic-scripting[inline scripts],
 you can use JavaScript as follows:
 
 [source,json]
@@ -84,14 +84,14 @@ GET test/_search
 ----
 // AUTOSENSE
 
-[[lang-javascript-indexed]]
+[[lang-javascript-stored]]
 [float]
-=== Indexed scripts
+=== Stored scripts
 
-WARNING: Enabling indexed scripting on an unprotected Elasticsearch cluster is dangerous.
+WARNING: Enabling stored scripts on an unprotected Elasticsearch cluster is dangerous.
 See <<lang-javascript-file>> for a safer option.
 
-If you have enabled {ref}/modules-scripting.html#enable-dynamic-scripting[indexed scripts],
+If you have enabled {ref}/modules-scripting-security.html#enable-dynamic-scripting[stored scripts],
 you can use JavaScript as follows:
 
 [source,json]
@@ -133,7 +133,7 @@ GET test/_search
 ----
 // AUTOSENSE
 
-<1> We index the script under the id `my_script`.
+<1> We store the script under the id `my_script`.
 <2> The function score query retrieves the script with id `my_script`.
 
 

+ 6 - 6
docs/plugins/lang-python.asciidoc

@@ -47,7 +47,7 @@ Scripting is available in many APIs, but we will use an example with the
 WARNING: Enabling inline scripting on an unprotected Elasticsearch cluster is dangerous.
 See <<lang-python-file>> for a safer option.
 
-If you have enabled {ref}/modules-scripting.html#enable-dynamic-scripting[inline scripts],
+If you have enabled {ref}/modules-scripting-security.html#enable-dynamic-scripting[inline scripts],
 you can use Python as follows:
 
 [source,json]
@@ -83,14 +83,14 @@ GET test/_search
 ----
 // AUTOSENSE
 
-[[lang-python-indexed]]
+[[lang-python-stored]]
 [float]
-=== Indexed scripts
+=== Stored scripts
 
-WARNING: Enabling indexed scripting on an unprotected Elasticsearch cluster is dangerous.
+WARNING: Enabling stored scripts on an unprotected Elasticsearch cluster is dangerous.
 See <<lang-python-file>> for a safer option.
 
-If you have enabled {ref}/modules-scripting.html#enable-dynamic-scripting[indexed scripts],
+If you have enabled {ref}/modules-scripting-security.html#enable-dynamic-scripting[stored scripts],
 you can use Python as follows:
 
 [source,json]
@@ -132,7 +132,7 @@ GET test/_search
 ----
 // AUTOSENSE
 
-<1> We index the script under the id `my_script`.
+<1> We store the script under the id `my_script`.
 <2> The function score query retrieves the script with id `my_script`.