elasticsearch/docs/reference/modules/scripting
Ryan Ernst 97d2657e18 Remove script access to term statistics (#19462)
In scripts (at least some of the languages), the terms dictionary and
postings can be access with the special _index variable. This is for
very advanced use cases which want to do their own scoring. The problem
is segment level statistics must be recomputed for every document.
Additionally, this is not friendly to the terms index caching as the
order of looking up terms should be controlled by lucene.

This change removes _index from scripts. Anyone using it can and should
instead write a Similarity plugin, which is explicitly designed to allow
doing the calculations needed for a relevance score.

closes #19359
2017-05-16 09:10:09 -07:00
..
engine.asciidoc Scripting: Replace advanced and native scripts with ScriptEngine docs (#24603) 2017-05-11 12:15:16 -07:00
expression.asciidoc improve date api for expressions/painless fields 2016-05-31 09:32:33 -04:00
fields.asciidoc Remove script access to term statistics (#19462) 2017-05-16 09:10:09 -07:00
painless-debugging.asciidoc Generate reference links for painless API (#22775) 2017-01-26 10:39:19 -05:00
painless-syntax.asciidoc Fixed docs syntax for for-in loop in painless 2017-05-05 16:07:20 +02:00
painless.asciidoc Docs: Tiny typo to Painless dispatch justification (#24588) 2017-05-10 22:05:19 -04:00
security.asciidoc Add New Security Script Settings (#24637) 2017-05-15 13:37:46 -07:00
using.asciidoc CONSOLEify the "using scripts" documentation 2017-04-03 10:15:29 -04:00