Hi there!
I'd like to know whether it is possible to apply an index mapping so to manipulate some nested fields as soon as they arrive.
To make it more understandable, let's say I have some in-coming documents structured as follows:
field1: ...
field2: ...
field3:
[
{
nestedfield1: ...
nestedfield2: float
nestedfield3: ...
},
{
nestedfield1: ...
nestedfield2: float
nestedfield3: ...
},
.
.
.
{
nestedfield1: ...
nestedfield2: float
nestedfield3: ...
}
]
I'd like to add to such documents a further NON nested field (i.e. sibling of field1, field2, field3) which is the sum of the nestedfield2s (e.g. total_nestedfield2: float).
Docs are ingested from a third party platform so I cannot modify the way they are generated but only manipulate them at load time.
Ideas?
Thank you!