def METHOD_NAME(self, cls: Entity):
    current_object_type = cls._object_type()
    if not self.clear and current_object_type not in self.cleared:
        self.strategy.send(current_object_type)
        self.cleared.add(current_object_type)
    adapter = self.adapted.get(current_object_type)
    if not adapter or not adapter.indexable:
        return
    name = cls.__name__
    with self.session.begin():
        query = self.session.query(cls).options(sa.orm.lazyload("*"))
        try:
            count = query.count()
        except Exception as e:
            current_app.logger.error(f"Indexing error on class {name}: {repr(e)}")
            return
        print("*" * 79)
        print(f"{name}")
        if count == 0:
            print("*" * 79)
            print(f"{name}")
            return
        print("*" * 79)
        print(f"{name}")
        with tqdm(total=count) as bar:
            self.reindex_batch(query, current_object_type, adapter, bar)
        if not self.batch_size:
            self.strategy.send(COMMIT)
    self.strategy.send(COMMIT)