I have tried multiple methods and they all seem to keep the data in an array of the same field instead of the grouping to match.
I am attempting to turn this type of grouping:
"service": {
"name": [
"value1",
"value2",
]
Into the following:
"service": [
{
"name": value1
},
{
"name": value2
}
]
A little more to the story:
I am attempting to index these as nested field types. I have the mapping setup like the following:
"service": {
"type": "nested",
"properties": {
"name": {
"type": "keyword"
}
}