Пример #1
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);
        }
Пример #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);
        }
Пример #3
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);
        }
Пример #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);
        }