Get a mapping/schema of flattened field

Is there a way to get a mapping or schema of all the sub-fields that exist in my flattened field?

Hi @getorca

By documentation, is not possible.

The flattened type provides an alternative approach, where the entire object is mapped as a single field.

I'm wondering about with painless even. The subfields exist in the flattened field in some format, you can query on them. However not sure where to begin with painless. I guess it would be a loop on the field but not sure how to unpack it. Also not sure if painless can support recursion.

I guess I can probably do it in my app code taking a sampling of the docs.

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