예제 #1
0
 public override void TestSetup()
 {
     _luceneDir = new RAMDirectory();
     _indexer   = IndexInitializer.GetUmbracoIndexer(_luceneDir);
     _indexer.RebuildIndex();
     _searcher = IndexInitializer.GetUmbracoSearcher(_luceneDir);
 }
예제 #2
0
 public void TestSetup()
 {
     _luceneDir = new RAMDirectory();
     _indexer = IndexInitializer.GetUmbracoIndexer(_luceneDir);
     _indexer.RebuildIndex();
     _searcher = IndexInitializer.GetUmbracoSearcher(_luceneDir);
 }
예제 #3
0
        public void TestSetup()
        {
            _luceneDir = new RandomIdRAMDirectory();

            //_luceneDir = new SimpleFSDirectory(new DirectoryInfo(Path.Combine(TestHelper.AssemblyDirectory, Guid.NewGuid().ToString())));

            _indexer = IndexInitializer.GetUmbracoIndexer(_luceneDir);
            _indexer.RebuildIndex();
            _searcher = IndexInitializer.GetUmbracoSearcher(_luceneDir);
        }
예제 #4
0
        public override void TestSetup()
        {
            _luceneDir = new RAMDirectory();
            _indexer   = IndexInitializer.GetSimpleIndexer(_luceneDir);

            _reIndexDateTime = DateTime.Now;
            Thread.Sleep(1000);

            _indexer.RebuildIndex();

            _searcher = IndexInitializer.GetLuceneSearcher(_luceneDir);
        }
예제 #5
0
        public void TestSetup()
        {
            _luceneDir = new RAMDirectory();

            //_luceneDir = new SimpleFSDirectory(new DirectoryInfo(Path.Combine(TestHelper.AssemblyDirectory, Guid.NewGuid().ToString())));

            _indexer = IndexInitializer.GetUmbracoIndexer(_luceneDir);
            _indexer.RebuildIndex();
            _searcher = IndexInitializer.GetUmbracoSearcher(_luceneDir);
        }
예제 #6
0
        public void TestSetup()
        {
            _luceneDir = new RAMDirectory();
            _indexer = IndexInitializer.GetSimpleIndexer(_luceneDir);

            _reIndexDateTime = DateTime.Now;
            Thread.Sleep(1000);

            _indexer.RebuildIndex();

            _searcher = IndexInitializer.GetLuceneSearcher(_luceneDir);
        }