Merge pull request #16785 from dsem/patch-1

Fix python script filename extension
This commit is contained in:
Clinton Gormley 2016-02-28 23:03:43 +01:00
parent cd4b6d5e78
commit 2d56eed306
1 changed files with 3 additions and 3 deletions

View File

@ -141,10 +141,10 @@ GET test/_search
=== File scripts === File scripts
You can save your scripts to a file in the `config/scripts/` directory on You can save your scripts to a file in the `config/scripts/` directory on
every node. The `.python` file suffix identifies the script as containing every node. The `.py` file suffix identifies the script as containing
Python: Python:
First, save this file as `config/scripts/my_script.python` on every node First, save this file as `config/scripts/my_script.py` on every node
in the cluster: in the cluster:
[source,python] [source,python]
@ -188,5 +188,5 @@ GET test/_search
---- ----
// AUTOSENSE // AUTOSENSE
<1> The function score query retrieves the script with filename `my_script.python`. <1> The function score query retrieves the script with filename `my_script.py`.