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; }
public Indexer(IndexerOptions indexerOptions) { this.filesNotIndexed = new List <string>(); this.Index = new Index(indexerOptions.ApplyPorterStemming, indexerOptions.RemoveStopWord); }
protected override void ProcessRecord() { IndexerOptions options = base.SendSonarrGet <IndexerOptions>(ApiEndpoints.IndexerOptions); base.SendToPipeline(options); }