Source Jexl Mapping
- Replace document values by
jexl:a.replace('${sku} - ${supplierId}').replace('${sku}')
- take the first value of an array and put it as a single value. If there is no array the value is mapped.
jexl:a.firstValue('customerArticleNumbers')
- concat a array of values and separate it by the seperator
jexl:a.concat('title', ' ')
- map the first field value that not returns a null value. Arguments: a list of fields
jexl:a.firstField('title', 'name')
- remove a field from the document
jexl:a.removeField('myField')
- replace by the defined regex
jexl:a.replaceAll('.*?_(.*)', '$1')
- replace the first match by the defined regex
jexl:a.replaceFirst('.*?_(.*)', '$1')
- chain multiple functions
jexl:a.replace('${sku} - ${supplierId}').replace('${sku}')