Combine multiple documents into one document
I have a few documents, for example, 3 documents
Document - 1
{
...
test: "a"
...
}
Document - 2
{
...
test: "b"
...
}
Document - 3
{
...
test: "c"
...
}
===============Output I am looking for ==============
Document -
{
...
test: "a", "b","c"
...
}
This is like the merging of multiple documents into a single document ( could be in different index).