Unverified Commit 15c0d1a2 authored by AMIT KUMAR's avatar AMIT KUMAR Committed by GitHub
Browse files

Sb 26823 ingest pipeline for user (#2986)

Showing with 11 additions and 0 deletions
+11 -0
{
"description": "This Pipeline Will copy profileUserType Map<String,String> to profileUserTypes i.e List<Map<String,String>>",
"processors": [
{
"script": {
"lang": "painless",
"source": "\nif (ctx.profileUserType != null){\nArrayList tags = new ArrayList();\ntags.add(ctx.profileUserType);\nctx.profileUserTypes = tags;}\nelse{\nArrayList tags = new ArrayList();\nctx.profileUserTypes = tags;}"
}
}
]
}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment