title: How to create a new index in Elasticsearch 5 from .Net or NEST
body: <p>I am trying to create a new Elastic 5 index from .net and data from a SQL database into it using the bulk API.</p>
  
  <p>I have created a POCO for mapping:</p>
  
  <pre><code>using Nest;
  
  namespace NEST5
  {
    [ElasticsearchType(IdProperty = "data_id")]
    public class Test_Data
    {    
       public int data_id { get; set; }
       public string address { get; set; }
       public string location { get; set; }
    }
  }
  </code></pre>
  
  <p>And I am getting the data from SQL into a list of type Test_Data</p>
  
  <p>Then I am trying to connect to my Elasticsearch server and create an index:</p>
  
  <pre><code>var connectionPool = new SingleNodeConnectionPool(new Uri("http://&lt;ip here&gt;:9200/"));
  var settings = new ConnectionSettings(connectionPool, new InMemoryConnection())
   .DefaultIndex("test_data")
   .BasicAuthentication("username", "password");
  
  var client = new ElasticLowLevelClient(settings);
  
  var descriptor = new CreateIndexDescriptor("test_data")
   .Mappings(ms =&gt; ms
   .Map&lt;Test_Data&gt;(m =&gt; m.AutoMap())
   );
  
  client.IndicesCreate&lt;Test_Data&gt;("test_data", descriptor, null);
  </code></pre>
  
  <p>However, this does not show an error, but is not creating a new index as required either.</p>
  
  <p>Thank you in advance for any assistance.</p>