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.
This commit is contained in:
farisk 2017-04-24 15:28:46 +01:00 committed by Nik Everett
parent 1500beafc7
commit 931198688c
1 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,8 @@ script inside a <<query-dsl-function-score-query,function score query>>.
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: