add support for mappings to ES bulk restore script