Exemplo n.º 1
0
 public SearchEngine(
     IHostingEnvironment environment,
     AnalyzerFactory analyzerFactory,
     SubfolderFactory folderFactory
     )
 {
     _env             = environment;
     _analyzerFactory = analyzerFactory;
     _folderFactory   = folderFactory;
 }
Exemplo n.º 2
0
        public QueryProvider(
            IHostingEnvironment environment,
            AnalyzerFactory analyzerFactory,
            SubfolderFactory folderFactory
            )
        {
            _boolQuery = new BooleanQuery();
            _current   = _boolQuery;

            //for search purpose
            _env             = environment;
            _analyzerFactory = analyzerFactory;
            _subfolder       = folderFactory.GetFolderName <TLuceneEntity>();
        }