Esempio n. 1
0
        public static void ClassInitialize(TestContext context)
        {
            var analyzerFactory = new AnalyzerFactory(new ResourceLoaderImpl(@"Query\Search\Engine\Test\Data"));

            _contentAnalyzer = analyzerFactory.CreateBaseContentAnalyzer(false);

            var queryAnalyzer = analyzerFactory.CreateBaseQueryAnalyzer(false);

            _queryParser = new QueryParser(LuceneVersion.LUCENE_29, ContentField, queryAnalyzer);
            _queryParser.setDefaultOperator(QueryParser.Operator.AND);
        }
Esempio n. 2
0
        public static void ClassInitialize(TestContext context)
        {
            var analyzerFactory = new AnalyzerFactory(new ResourceLoaderImpl(@"Query\Search\Engine\Test\Data"));

            _queryAnalyzer = analyzerFactory.CreateBaseQueryAnalyzer(false);
        }