Parsing the data before it's exported to Excel/PDF
_source field includes all the fields available in that particular index when exported to Excel/PDF.
So if you need each field you can add the required fields to your search instead of the _source field so that when exported to Excel/PDF the fields will be available in separate columns.
Kindly refer the screenshot given below,