Exemple #1
0
 public Reindexer(
     ElasticSearchClient <IndexRequestDbo> requestsClient,
     ElasticSearchOptions options,
     QueueForIndex queueForIndex)
 {
     _requestsClient = requestsClient;
     _options        = options;
     _queueForIndex  = queueForIndex;
 }
Exemple #2
0
 public Indexer(
     ElasticSearchClient <Document> client,
     ElasticSearchOptions options,
     QueueForIndex indexRequestsQueue,
     IHttpClientFactory httpClientFactory,
     SiteMapGetter siteMapGetter,
     PagesPerSiteLimiter pagesPerSiteLimiter)
 {
     _client  = client;
     _options = options;
     this.indexRequestsQueue  = indexRequestsQueue;
     this.siteMapGetter       = siteMapGetter;
     this.pagesPerSiteLimiter = pagesPerSiteLimiter;
     httpClient = httpClientFactory.CreateClient("Page downloader");
 }