def reindex(self):
for wh in self.whoosheers:<EOL><INDENT>index = type(self).get_or_create_index(_get_app(self), wh)<EOL>writer = index.writer(timeout=_get_config(self)['<STR_LIT>'])<EOL>for model in wh.models:<EOL><INDENT>method_name = "<STR_LIT>".format(UPDATE_KWD, model.__name__.lower())<EOL>for item in model.query.all():<EOL><INDENT>getattr(wh, method_name)(writer, item)<EOL><DEDENT><DEDENT>writer.commit()<EOL><DEDENT>
Reindex all data

        This method retrieves all the data from the registered models and
        calls the ``update_<model>()`` function for every instance of such
        model.