コード例 #1
0
        public ReindexTextMigration(IRepository<ContentItem> repository, IContentIndexer indexer, LuceneAccesor accessor)
        {
            this.repository = repository;
            this.indexer = indexer;
            this.accessor = accessor;

            Title = "Reindex all content using the lucene based search index";
            Description = "Will re-index all items using lucene search database format.";
        }
コード例 #2
0
ファイル: AsyncIndexer.cs プロジェクト: brianmatic/n2cms
        public AsyncIndexer(IContentIndexer indexer, IPersister persister, IWorker worker, IErrorNotifier errors, DatabaseSection config)
        {
            RetryInterval = TimeSpan.FromMinutes(2);
            this.async = config.Search.AsyncIndexing;
            this.handleErrors = config.Search.HandleErrors;

            this.indexer = indexer;
            this.persister = persister;
            this.worker = worker;
            this.errors = errors;
        }