Hi,
I have a doubt about a feature. I'm trying to run an internal process in Elastic where I create superseed objects based on an index that contains more flat and granular objects. For example:
The source index contains objects as:
[
{
"person_id": "2736548Z",
"comment": "hi 1",
"timestamp": "2023-02-24T12:15:00"
} ,
{
"person_id": "2736548Z",
"comment": "hi 2",
"timestamp": "2023-02-24T12:20:00"
}
{
"person_id": "1278882S",
"comment": "hi a",
"timestamp": "2023-02-24T12:25:00"
}
]
I want to create the next superseed object in a destination index based on the person_id as aggregatable entity key:
[
{
"person_id": "2736548Z",
"comments": [
{
"comment": "hi 1",
"timestamp": "2023-02-24T12:15:00"
},
{
"comment": "hi 2",
"timestamp": "2023-02-24T12:20:00"
}
]
} ,
{
"person_id": "2736548Z",
"comments": [
{
"comment": "hi a",
"timestamp": "2023-02-24T12:25:00"
},
]
}
]
Is there any internal process as pipeline, processor, transformer that I can use to generate that superseed object based on a particular key as parent of the object array?
Thanks in advance!