Mercurial > kallithea
diff rhodecode/lib/indexers/daemon.py @ 1995:b6c902d88472 beta
bumbed whoosh to 2.3.X series
- fixed some html issues on search results
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 16 Feb 2012 05:41:58 +0200 |
parents | 89efedac4e6c |
children | 324ac367a4da |
line wrap: on
line diff
--- a/rhodecode/lib/indexers/daemon.py Tue Feb 14 23:33:08 2012 +0200 +++ b/rhodecode/lib/indexers/daemon.py Thu Feb 16 05:41:58 2012 +0200 @@ -49,7 +49,6 @@ from whoosh.index import create_in, open_dir - log = logging.getLogger('whooshIndexer') # create logger log.setLevel(logging.DEBUG) @@ -68,12 +67,13 @@ # add ch to logger log.addHandler(ch) + class WhooshIndexingDaemon(object): """ Daemon for atomic jobs """ - def __init__(self, indexname='HG_INDEX', index_location=None, + def __init__(self, indexname=IDX_NAME, index_location=None, repo_location=None, sa=None, repo_list=None): self.indexname = indexname @@ -95,7 +95,6 @@ self.repo_paths = filtered_repo_paths - self.initial = False if not os.path.isdir(self.index_location): os.makedirs(self.index_location) @@ -155,7 +154,6 @@ modtime=self.get_node_mtime(node), extension=node.extension) - def build_index(self): if os.path.exists(self.index_location): log.debug('removing previous index') @@ -177,7 +175,6 @@ writer.commit(merge=True) log.debug('>>> FINISHED BUILDING INDEX <<<') - def update_index(self): log.debug('STARTING INCREMENTAL INDEXING UPDATE')