Ejemplo n.º 1
0
    def _apply_cache(self, indexpath, cachepath, cache_id):
        idx = IndexerConnection(indexpath)
        cm = XapianCacheManager(cachepath, id=cache_id)

        idx.set_cache_manager(cm)
        idx.apply_cached_items()
        idx.close()
Ejemplo n.º 2
0
 def _apply_cache(self, indexpath, cm):
     idx = IndexerConnection(indexpath)
     idx.set_cache_manager(cm)
     idx.apply_cached_items()
     idx.close()