How can i show values in kibana pie chart from multiple array fields ?
I have document like below:
{
"field1": ["a", "b", "c"],
"field2": ["a", "x", "y", "z"],
}
I want to see the aggregations combining both fields like
{"field3": ["a", "b", "c", "x", "y", "z"]}
If there is no direct way in kibana, can i use painless script to create new field for existing documents ? can someone provide me, to use in update_by_query ?