Scripting Help

By default, Elasticsearch scripts use Lucene Expressions , which is a lot like JavaScript, but limited to basic arithmetic, bitwise and comparison operations. We'll let you do some reading on Lucene Expressions To access values in the document use the following format:

doc['some_field'].value

There are a few limitations when using Lucene Expressions:

Here are all the operations available to scripted fields: