Exemple #1
0
 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 };
 }
Exemple #2
0
        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
            });
        }