OpenSearch/docs/reference/modules/scripting
Nik Everett ae468441dc Implement the ?: operator in painless (#21506)
Implements a null coalescing operator in painless that looks like `?:`. This form was chosen to emulate Groovy's `?:` operator. It is different in that it only coalesces null values, instead of Groovy's `?:` operator which coalesces all falsy values. I believe that makes it the same as Kotlin's `?:` operator. In other languages this operator looks like `??` (C#) and `COALESCE` (SQL) and `:-` (bash).

This operator is lazy, meaning the right hand side is only evaluated at all if the left hand side is null.
2016-11-18 13:54:26 -05:00
..
advanced-scripting.asciidoc Reorganise scripting docs (#18132) 2016-05-04 18:17:10 +02:00
expression.asciidoc improve date api for expressions/painless fields 2016-05-31 09:32:33 -04:00
fields.asciidoc Renamed all AUTOSENSE snippets to CONSOLE (#18210) 2016-05-09 15:42:23 +02:00
groovy.asciidoc Groovy is no longer the default scripting language 2016-11-05 16:31:34 +01:00
native.asciidoc Fix leftover reference to ScriptModule in native script docs 2016-11-17 08:22:15 -08:00
painless-syntax.asciidoc Implement the ?: operator in painless (#21506) 2016-11-18 13:54:26 -05:00
painless.asciidoc Disable regexes by default in painless 2016-09-12 14:09:43 -04:00
security.asciidoc Docs: Replace [source,json] with [source,js] 2016-05-24 11:17:27 -04:00
using.asciidoc Cleanup ScriptType (#21179) 2016-10-31 13:48:51 -07:00