nodes: 0, module; 1, function_definition; 2, function_name:reload_index; 3, parameters; 4, block; 5, identifier:self; 6, default_parameter; 7, expression_statement; 8, expression_statement; 9, expression_statement; 10, while_statement; 11, expression_statement; 12, expression_statement; 13, identifier:progress_cb; 14, identifier:dummy_progress_cb; 15, comment:"""
          Read the index, and load the document list from it
  
          Arguments:
              callback --- called during the indexation (may be called *often*).
                  step : DocSearch.INDEX_STEP_READING or
                      DocSearch.INDEX_STEP_SORTING
                  progression : how many elements done yet
                  total : number of elements to do
                  document (only if step == DocSearch.INDEX_STEP_READING): file
                      being read
          """; 16, assignment; 17, assignment; 18, call; 19, block; 20, call; 21, call; 22, identifier:nb_results; 23, call; 24, identifier:progress; 25, integer:0; 26, attribute; 27, argument_list; 28, expression_statement; 29, expression_statement; 30, identifier:progress_cb; 31, argument_list; 32, attribute; 33, argument_list; 34, attribute; 35, argument_list; 36, attribute; 37, identifier:continue_reload_index; 38, call; 39, augmented_assignment; 40, integer:1; 41, integer:1; 42, attribute; 43, attribute; 44, identifier:end_reload_index; 45, attribute; 46, identifier:start_reload_index; 47, identifier:self; 48, identifier:index; 49, identifier:progress_cb; 50, argument_list; 51, identifier:progress; 52, integer:1; 53, identifier:self; 54, identifier:INDEX_STEP_LOADING; 55, identifier:self; 56, identifier:index; 57, identifier:self; 58, identifier:index; 59, identifier:progress; 60, identifier:nb_results; 61, attribute; 62, identifier:self; 63, identifier:INDEX_STEP_LOADING
code: def reload_index(self, progress_cb=dummy_progress_cb):
          """
          Read the index, and load the document list from it
  
          Arguments:
              callback --- called during the indexation (may be called *often*).
                  step : DocSearch.INDEX_STEP_READING or
                      DocSearch.INDEX_STEP_SORTING
                  progression : how many elements done yet
                  total : number of elements to do
                  document (only if step == DocSearch.INDEX_STEP_READING): file
                      being read
          """
          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()