In a mapping that converts hierarchical data to hierarchical data, you can read from one or more hierarchical data sources and write to one hierarchical data file.
You can convert hierarchical input from one schema to a different schema. You can read data from primitive fields, structs, and arrays and arrange the data in a different structure.
You can also transform the data that you are converting. You can join data sources, configure group by and order by fields, filter for specific information, and aggregate incoming and output data.
The following image shows an example of an elastic mapping that uses a Hierarchy Processor transformation to convert hierarchical data to hierarchical data of a different structure:
In this mapping, the data source is a JSON file that contains orders and items data. The data flows into a different JSON file that contains order information. The Hierarchy Processor transformation is selected, and the
tab shows the structure of the incoming and output data.