+++ /dev/null
-# -*- coding: utf-8 -*-
-"""base: base class for searchindex"""
-
-import lucene_wrapper
-
-class Index(object):
- def __init__(self, **kwargs):
- self.config = kwargs
-
- def get_searcher(self):
- return lucene_wrapper.Searcher(index_directory=self.config.get("index_directory"))
-
- def get_query(self, target):
- pass
+++ /dev/null
-# -*- coding: utf-8 -*-
-"""indexer: indexer classes for ns_searchd"""
-
-import lucene_wrapper
-
-class Indexer(object):
- def __init__(self, **kwargs):
- self.config = kwargs
-
- def add_story(self, sid):
- searcher = self.get_searcher()
-