I would execute a groovy script, so I added the properties:
script.inline: true
script.indexed: true
and
script.allowed_types: inline
script.allowed_contexts: search, update
But I got the following exception:
java.lang.IllegalArgumentException: unknown setting [script.engine.groovy.inline.search]