code: def refresh(self):
          
          table   = self.tableType()
          search  = nativestring(self._pywidget.text())
          if search == self._lastSearch:
              return
          
          self._lastSearch = search
          if not search:
              return
          
          if search in self._cache:
              records = self._cache[search]
          else:
              records = table.select(where = self.baseQuery(),
                                     order = self.order())
              records = list(records.search(search, limit=self.limit()))
              self._cache[search] = records
          
          self._records = records
          self.model().setStringList(map(str, self._records))
          self.complete()
docs: Refreshes the contents of the completer based on the current text.