public void FixtureSetup()
        {
            directory = new RAMDirectory();
            customdAnalyzer = new GISAServer.Search.CustomAnalyzer.CustomAnalyzer();
            writer = new IndexWriter(directory, customdAnalyzer, IndexWriter.MaxFieldLength.UNLIMITED);
            AddDocuments(new List<string>() { "[Rosa]", "Rosa", "Olá" });
            writer.Dispose();

            searcher = new IndexSearcher(directory);
        }
Exemple #2
0
        public void FixtureSetup()
        {
            directory       = new RAMDirectory();
            customdAnalyzer = new GISAServer.Search.CustomAnalyzer.CustomAnalyzer();
            writer          = new IndexWriter(directory, customdAnalyzer, IndexWriter.MaxFieldLength.UNLIMITED);
            AddDocuments(new List <string>()
            {
                "[Rosa]", "Rosa", "Olá"
            });
            writer.Dispose();

            searcher = new IndexSearcher(directory);
        }
        public void FixtureSetup()
        {
            directory = new RAMDirectory();
            customdAnalyzer = new GISAServer.Search.CustomAnalyzer.CustomAnalyzer();
            writer = new IndexWriter(directory, customdAnalyzer, IndexWriter.MaxFieldLength.UNLIMITED);
            AddDocuments(new List<string>() { 
                "Hello world", 
                "hello tests", 
                "hi lucene and tests",
                "Licença de obra n.º: 465/1927"});
            writer.Dispose();

            searcher = new IndexSearcher(directory);
        }
Exemple #4
0
        public void FixtureSetup()
        {
            directory       = new RAMDirectory();
            customdAnalyzer = new GISAServer.Search.CustomAnalyzer.CustomAnalyzer();
            writer          = new IndexWriter(directory, customdAnalyzer, IndexWriter.MaxFieldLength.UNLIMITED);
            AddDocuments(new List <string>()
            {
                "Hello world",
                "hello tests",
                "hi lucene and tests",
                "Licença de obra n.º: 465/1927"
            });
            writer.Dispose();

            searcher = new IndexSearcher(directory);
        }