private InstanceServices CreateServices(string instanceName) { var path = Path.Combine(indexPath, instanceName); var accessor = new LuceneAccesor(path); var indexer = new LuceneIndexer(accessor); var searcher = new LuceneLightweightSearcher(accessor); return new InstanceServices { indexer = indexer, searcher = searcher }; }
private InstanceServices CreateServices(string instanceName) { var path = Path.Combine(indexPath, instanceName); var accessor = new LuceneAccesor(path); var indexer = new LuceneIndexer(accessor); var searcher = new LuceneLightweightSearcher(accessor); return(new InstanceServices { indexer = indexer, searcher = searcher }); }