'Change the given course\'s index entry.
Note, this operation can be dangerous and break running courses.
Does not return anything useful.'

def update_course_index(self, course_key, updated_index_entry):

    bulk_write_record = self._get_bulk_ops_record(course_key)
    if bulk_write_record.active:
        bulk_write_record.index = updated_index_entry
    else:
        self.db_connection.update_course_index(updated_index_entry, course_context=course_key)
