public DocumentIndexerHostedService(ILogger <DocumentIndexerHostedService> logger, IOptions <IndexerOptions> options, ApplicationDbContextFactory applicationDbContextFactory, ElasticsearchIndexService elasticsearchIndexService)
 {
     this.logger  = logger;
     this.options = options.Value;
     this.elasticsearchIndexService   = elasticsearchIndexService;
     this.applicationDbContextFactory = applicationDbContextFactory;
 }
示例#2
0
 public Indexer(IndexerOptions indexerOptions)
 {
     this.filesNotIndexed = new List <string>();
     this.Index           = new Index(indexerOptions.ApplyPorterStemming, indexerOptions.RemoveStopWord);
 }
示例#3
0
        protected override void ProcessRecord()
        {
            IndexerOptions options = base.SendSonarrGet <IndexerOptions>(ApiEndpoints.IndexerOptions);

            base.SendToPipeline(options);
        }