public SearchService(ILogger <ISearchService> logger, IElasticClientProvider elasticClientProvider)

        {
            this.logger = logger;

            this.elasticClient = elasticClientProvider.Create(false);
        }
Beispiel #2
0
 public ElasticClientService(
     ILogger <IElasticClientService> logger,
     IElasticClientProvider elasticClientProvider,
     IndexingSettings indexingSettings)
 {
     this.logger = logger;
     this.maxDocumentsPerBatch = indexingSettings.MaxDocumentsPerBatch;
     this.elasticClient        = elasticClientProvider.Create(true);
 }