Elasticsearch result: Array to CSV

You could rearrange data using a ruby filter similar to this. Then use a split filter.