public void UpdateCustomer(Customer customer)
 {
     var index = esClient.Index(customer, i => i
     .Index("Customer.SearchIndex")
     .Type("customer")
     .Id(customer.Id)
     .Refresh()
     .Ttl("1m"));
 }
 public void CreateCustomer(Customer customer)
 {
     var index = esClient.Index(customer, i => i
    .Index(def_index)
    .Type(def_index)
    .Id(customer.Id)
    .Refresh()
    .Ttl("1m"));
 }