diff --git a/src/ui/public/field_editor/field_editor.html b/src/ui/public/field_editor/field_editor.html index 590d15154981a..ddee0fa140b7a 100644 --- a/src/ui/public/field_editor/field_editor.html +++ b/src/ui/public/field_editor/field_editor.html @@ -146,6 +146,19 @@
+ 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. +
+ +
+ Invalid
+
+ def myField = doc['some_field'].value;
+
+ return myField;
+
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.