コード例 #1
0
ファイル: Configuration.cs プロジェクト: donners77/DukeSharp
        private List<Property> _proplist; // duplicate to preserve order

        #endregion Fields

        #region Constructors

        public Configuration()
        {
            logger.Debug("Intializing Configuration");
            _datasources = new List<IDataSource>();
            _group1 = new List<IDataSource>();
            _group2 = new List<IDataSource>();
            _dbprops = new DatabaseProperties();
        }
コード例 #2
0
 public Configuration()
 {
     logger.Debug("Intializing Configuration");
     _datasources = new List <IDataSource>();
     _group1      = new List <IDataSource>();
     _group2      = new List <IDataSource>();
     _dbprops     = new DatabaseProperties();
 }
コード例 #3
0
        public LuceneDatabase(Configuration config, bool overwrite, DatabaseProperties dbprops)
        {
            _config      = config;
            _analyzer    = new StandardAnalyzer(Version.LUCENE_29);
            _maintracker = new QueryResultTracker(config, _analyzer, _searcher, dbprops.MaxSearchHits,
                                                  dbprops.MinRelevance);
            _maxSearchHits = dbprops.MaxSearchHits;
            _minRelevance  = dbprops.MinRelevance;

            try
            {
                OpenIndexes(overwrite);
                OpenSearchers();
            }
            catch (Exception ex)
            {
                logger.Error("Error initializing object: {0}", ex.Message);
            }
        }
コード例 #4
0
ファイル: LuceneDatabase.cs プロジェクト: donners77/DukeSharp
        public LuceneDatabase(Configuration config, bool overwrite, DatabaseProperties dbprops)
        {
            _config = config;
            _analyzer = new StandardAnalyzer(Version.LUCENE_29);
            _maintracker = new QueryResultTracker(config, _analyzer, _searcher, dbprops.MaxSearchHits,
                                                  dbprops.MinRelevance);
            _maxSearchHits = dbprops.MaxSearchHits;
            _minRelevance = dbprops.MinRelevance;

            try
            {
                OpenIndexes(overwrite);
                OpenSearchers();
            }
            catch (Exception ex)
            {
                logger.Error("Error initializing object: {0}", ex.Message);
            }
        }