Docs: Fixed broken cross doc links to script topics.

This commit is contained in:
debadair 2016-05-04 13:38:57 -07:00
parent 230697c202
commit e49d21bdd6
2 changed files with 12 additions and 12 deletions

View File

@ -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`.

View File

@ -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`.