schema.es.change.1.4.0-0_user_script.json Maven / Gradle / Ivy
{
"description": "Migrate fields username to userId, firstname+lastname to displayName ",
"@type": "processorStep",
"indexName": "user",
"version": "1.4.0",
"order": 0,
"content": "{\"script\": {\"lang\": \"painless\",\"source\": \"ctx.userId = ctx.username; ctx.displayName = (ctx.firstname == null?'':ctx.firstname) + (ctx.lastname == null?'': (' ' + ctx.lastname))\"}}"
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy