<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def replace(self):
 """Replace index with a new one zero_downtime_index for safety and rollback """

        with zero_downtime_index(self.alias_name, self.index_config()) as target_index:
            self.index_all(target_index)