예제 #1
0
 private void SetAlias(string nextIndex, string alias)
 {
     var indicesForAlias = _client.GetIndicesPointingToAlias(Settings.Alias).ToList();
     var newIndices = new[] {nextIndex};
     _client = new ElasticClientWrapper();
     _client.Swap(alias, indicesForAlias, newIndices);
 }
예제 #2
0
 public PostEndpoint()
 {
     _client = new ElasticClientWrapper();
     _customerRepo = new CustomerRepository();
 }
예제 #3
0
 public DeleteEndpoint()
 {
     _client = new ElasticClientWrapper();
 }