@flaskbb.command()
def reindex():
 click.secho('[+] Reindexing search index...', fg='cyan')
 whooshee.reindex()

@ flaskbb . command ( ) def reindex ( ) : click . secho ( '[+] Reindexing search index...' , fg = 'cyan' ) whooshee . reindex ( )
reindex all instances of a given mapping type with celery tasks :arg mapping_type_names: list of mapping types to reindex .