Custom unified fields use an expression language that can be used to create more complex field mappings
$
, it is treated as a JSON Path expression and will be evaluated as such.
JSON Path | Description |
---|---|
$ | The root object |
. | Child operator |
@ | The current object |
* | Wildcard. All elements in an array, or all properties of an object |
.. | Recursive descent |
[] | Subscript operator |
[,] | Union operator |
[start : end : step] | Array slice operator |
?(expression) | Filter expression |
() | Script expression |
{{expression}}
. It supports variables and operators.
Operator | Description |
---|---|
! | Logical NOT |
+ | Addition, string concatenation |
- | Subtraction |
* | Multiplication |
/ | Division |
// | Floor division |
% | Modulus |
^ | Exponentiation |
&& | Logical AND |
| | Logical OR |
== | Equal |
!= | Not equal |
> | Greater than |
>= | Greater than or equal |
< | Less than |
<= | Less than or equal |
in | Element of string or array |
? : | Ternary operator |
${var}
syntax.
Examples: