Пример #1
0
 public DataIndexer(ElasticClientProvider clientProvider, IHostingEnvironment env, IOptions <ElasticConnectionSettings> settings)
 {
     _client = clientProvider.Client;
     // Path to read and index json data.
     _contentRootPath = Path.Combine(env.ContentRootPath, "data");
     _defaultIndex    = settings.Value.DefaultIndex;
 }
Пример #2
0
 public SearchService(ElasticClientProvider clientProvider)
 {
     _client = clientProvider.Client;
 }