From 931198688c2d34555fb7d82a0d2cf34feea70f1d Mon Sep 17 00:00:00 2001 From: farisk Date: Mon, 24 Apr 2017 15:28:46 +0100 Subject: [PATCH] Document that painless doesn't support the "advanced text scoring" (#24271) I just spent ages debugging a script I wrote after following the documentation. It was not clear to me that _index is not defined when using painless; if it was mentioned on this page I would have saved myself a lot of time. --- docs/reference/modules/scripting/advanced-scripting.asciidoc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/reference/modules/scripting/advanced-scripting.asciidoc b/docs/reference/modules/scripting/advanced-scripting.asciidoc index b4053d76598..a5fcc12777d 100644 --- a/docs/reference/modules/scripting/advanced-scripting.asciidoc +++ b/docs/reference/modules/scripting/advanced-scripting.asciidoc @@ -10,6 +10,8 @@ script inside a <>. Statistics over the document collection are computed *per shard*, not per index. +It should be noted that the `_index` variable is not supported in the painless language, but `_index` is defined when using the groovy language. + [float] === Nomenclature: