public ElasticAdminCommerceController( IContentIndexService contentIndexService, ILanguageBranchRepository languageBranchRepository, ICoreIndexer coreIndexer, IElasticSearchSettings settings, IHttpClientHelper httpClientHelper, IServerInfoService serverInfoService, IScheduledJobRepository scheduledJobRepository, IScheduledJobExecutor scheduledJobExecutor, ReferenceConverter referenceConverter) : base(contentIndexService, languageBranchRepository, coreIndexer, settings, httpClientHelper, serverInfoService, scheduledJobRepository, scheduledJobExecutor) { _settings = settings; _referenceConverter = referenceConverter; }
public IndexEpiserverCommerceContent( IContentLoader contentLoader, IContentIndexService contentIndexService, ICoreIndexer coreIndexer, IIndexer indexer, IBestBetsRepository bestBetsRepository, ILanguageBranchRepository languageBranchRepository, IElasticSearchSettings settings, IServerInfoService serverInfoService, IHttpClientHelper httpClientHelper, ReferenceConverter referenceConverter) : base(contentIndexService, contentLoader, coreIndexer, indexer, bestBetsRepository, languageBranchRepository, settings, serverInfoService, httpClientHelper) { _contentLoader = contentLoader; _referenceConverter = referenceConverter; CustomIndexName = $"{settings.Index}-{Constants.CommerceProviderName}"; }
public ElasticAdminController( IContentIndexService contentIndexService, ILanguageBranchRepository languageBranchRepository, ICoreIndexer coreIndexer, IElasticSearchSettings settings, IHttpClientHelper httpClientHelper, IServerInfoService serverInfoService, IScheduledJobRepository scheduledJobRepository, IScheduledJobExecutor scheduledJobExecutor) : base(serverInfoService, settings, httpClientHelper, languageBranchRepository) { _contentIndexService = contentIndexService; _coreIndexer = coreIndexer; _settings = settings; _healthHelper = new Health(settings, httpClientHelper); _httpClientHelper = httpClientHelper; _serverInfoService = serverInfoService; _scheduledJobRepository = scheduledJobRepository; _scheduledJobExecutor = scheduledJobExecutor; }
public IndexEPiServerContent( IContentIndexService contentIndexService, IContentLoader contentLoader, ICoreIndexer coreIndexer, IIndexer indexer, IBestBetsRepository bestBetsRepository, ILanguageBranchRepository languageBranchRepository, IElasticSearchSettings settings, IServerInfoService serverInfoService, IHttpClientHelper httpClientHelper) { _coreIndexer = coreIndexer; _indexer = indexer; _bestBetsRepository = bestBetsRepository; _contentIndexService = contentIndexService; _languageBranchRepository = languageBranchRepository; _settings = settings; _contentLoader = contentLoader; _serverInfoService = serverInfoService; _indexing = new Utilities.Indexing(serverInfoService, settings, httpClientHelper); IsStoppable = true; }
/// <summary> /// Override me to alter the indexing process for invidual content items /// </summary> /// <param name="indexService">the index service applicable to the <param name="item">content</param></param> /// <param name="item">content item</param> /// <param name="indexName">index to add the item to</param> protected virtual void RemoveContent(IContentIndexService indexService, IContent item, string indexName) { indexService.Remove(item, indexName); }
/// <summary> /// Override me to alter the indexing process for individual content items /// </summary> /// <param name="indexService">the index service applicable to the <param name="item">content</param></param> /// <param name="item">content item</param> /// <param name="indexName">index to add the item to</param> protected virtual void IndexContent(IContentIndexService indexService, IContent item, string indexName) { indexService.Index(item, indexName); }