'Get all closed indices.'

def get_closed_indices(self):

    state = self.conn.cluster.state()
    status = self.status()
    indices_metadata = set(state['metadata']['indices'].keys())
    indices_status = set(status['indices'].keys())
    return indices_metadata.difference(indices_status)
