diff --git a/ansible/roles/es-mapping/files/pipelines/userv3-ingest-pipeline.json b/ansible/roles/es-mapping/files/pipelines/userv3-ingest-pipeline.json new file mode 100644 index 0000000000000000000000000000000000000000..3052a0a2a4cf6ac2cbfc56b4dd53de6cf185e9a8 --- /dev/null +++ b/ansible/roles/es-mapping/files/pipelines/userv3-ingest-pipeline.json @@ -0,0 +1,11 @@ +{ + "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