[Patch] Reposearch always reindexes repository
|Reported by:||JirkaV||Owned by:||anonymous|
I found out that reposearch plugin always reindexes the repository upon search query. A bit of digging in the source code revealed that function need_reindex() in indexer.py compares self.repo.youngest_rev (type Unicode) with int(self.meta.get('last-repo-rev', -1)). These never match, therefore reindexing is started.
Changing int(self.meta.get('last-repo-rev', -1)) to unicode(self.meta.get('last-repo-rev', -1)) seems to solve the problem.
I'm using Trac 0.10.3 on Debian, if that's of any relevance. Latest revision of RepoSearch Plugin (reposearchplugin-r2920.zip)
Thanks for the great plugin BTW!
Change History (7)
comment:5 Changed 6 years ago by rjollos
- Summary changed from Reposearch always reindexes repository to [Patch] Reposearch always reindexes repository