Query Option Similar to Vega Flatten Transform

When using the Vega visualization engine to graph data, I use the flatten transform to turn a single document that contains an array of length n into n documents with a single element from the array.

From:
image
To:
image

This is great within Kibana, but others consuming the data through ES queries would like to perform the same transformation. Is there some way to transform data similarly in an ES query?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.