Is it possible to get the original raw document via SQL? E.g.:
SELECT _source FROM index WHERE indexedField = ...
Currently, I have to map arrays as “nested” type and use self-joins to access objects in arrays. With raw document I can get arrays from Json directly.
Also worth noting: nested objects often return in the inner_hits field when inner_hits are requested (such as in the SELECT clause). So it may not be good enough to retrieve the _source values.