diff --git a/src/ui/public/field_editor/field_editor.html b/src/ui/public/field_editor/field_editor.html index 7de9ded73ada5..f0d70a5e1388e 100644 --- a/src/ui/public/field_editor/field_editor.html +++ b/src/ui/public/field_editor/field_editor.html @@ -136,6 +136,9 @@
By default, Kibana scripted fields use Painless , a simple and secure scripting language designed specifically for use with Elasticsearch. To access values in the document use the following format:
@@ -146,6 +149,11 @@+ Sorting, aggregations, and access to field values in scripts require doc values which are supported (and on by default) on almost all field types, with the notable exception of analyzed string fields. + You can check the Fields tab to make sure the fields you want to use in your scripts are aggregatable and not analyzed before using them in a script. +
+Kibana currently imposes one special limitation on the scripts you write. Your scripts must consist of a single expression. Multi-statement scripts with an explicit return statement will not work. In other words, the above example is a valid script, but something like the following is not. @@ -159,6 +167,9 @@
Coming from an older version of Kibana? The Lucene Expressions you know and love are still available. Lucene expressions are a lot like JavaScript, but limited to basic arithmetic, bitwise and comparison operations.