Exemplo n.º 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 };
 }
Exemplo n.º 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
            });
        }