code: def reload_index(self, progress_cb=dummy_progress_cb):
          nb_results = self.index.start_reload_index()
          progress = 0
          while self.index.continue_reload_index():
              progress_cb(progress, nb_results, self.INDEX_STEP_LOADING)
              progress += 1
          progress_cb(1, 1, self.INDEX_STEP_LOADING)
          self.index.end_reload_index()