Writing CSV file to elasticsearch