A simple exemple of my data:
{
"email" : "user@mail.com",
"error_codes" : ["12.03","23.22","44.45"]
}
{
"email" : "user@mail.com",
"error_codes" : ["34.2","23.22","44.45"]
}
I would like to have a return like this:
{...
"aggregations":{
"buckets" : [
{
"key" : "user@mail.com",
"concat_array": {
"value":{
["12.03","23.22","44.45","34.2","23.22","44.45"]
}
}
}
]
}
}
I know how to perform aggregation by email and sum simple values, but I can't find the way to concatenate arrays like the result above, as simple as it seems. Is it even possible ? Thank you :)