public SearchService(ElasticClientProvider clientProvider)
 {
     this.client = clientProvider.Client;
 }
 public DataIndexer(ElasticClientProvider clientProvider, IHostingEnvironment env, IOptions <ElasticConnectionSettings> settings)
 {
     this.client          = clientProvider.Client;
     this.contentRootPath = Path.Combine(env.ContentRootPath, "data");
     this.defaultIndex    = settings.Value.DefaultIndex;
 }