title: Invalid NEST response built from a unsuccessful low level call on POST
body: <p>I want to configurate NEST from c# code
  When I use Kibana command <code>GET /_cat/indices?v</code> </p>
  
  <p>I get this result:</p>
  
  <p><a href="https://i.stack.imgur.com/7yFa8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7yFa8.png" alt="enter image description here"></a></p>
  
  <p>My test index is "customer"</p>
  
  <p>I'm using Elasticsearch.Net and NEST: the .NET clients [6.x]
  Elastic "6.5.4",
  Now this is how I configurate on C#:</p>
  
  <pre><code>  var settings = new ConnectionSettings(new Uri("http://localhost:9200"))
  .DefaultIndex("customer");
  
          var client = new ElasticClient(settings);
  
  
  
          var newCustomer = new Customer
          {
              name = "test_name",
              OS = "test_os",
              script = "test_script"
          };
  
  
          var indexResponse = client.IndexDocument(newCustomer);
  </code></pre>
  
  <p>and I get an error:</p>
  
  <pre><code>Invalid NEST response built from a unsuccessful low level call on POST: /customer/customer
  </code></pre>
  
  <p>why does it build request to /customer/customer ???
  What am I configurating wrong?</p>
  
  <p><strong>Error message:</strong></p>
  
  <p>Invalid NEST response built from a unsuccessful low level call on POST: /customer/customer
  Audit trail of this API call:
   -  BadResponse: Node: <a href="http://localhost:9200/" rel="nofollow noreferrer">http://localhost:9200/</a> Took: 00:00:00.2817669
  OriginalException: Elasticsearch.Net.ElasticsearchClientException: Удаленный сервер возвратил ошибку: (400) Недопустимый запрос.. Call: Status code 400 from: POST /customer/customer. ServerError: Type: illegal_argument_exception Reason: "Rejecting mapping update to [customer] as the final mapping would have more than 1 type: [_doc, customer]" ---> System.Net.WebException: Удаленный сервер возвратил ошибку: (400) Недопустимый запрос.</p>