示例#1
0
 public SearchService(ElasticClientProvider clientProvider)
 {
     this.client = clientProvider.Client;
 }
示例#2
0
 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;
 }