title: Elasticsearch.NET version 7 - How to Create Index
body: <p>In Elasticsearch.NET 6.x, it is possible create an index using <code>IElasticClient</code> method:</p>
  
  <pre class="lang-cs prettyprint-override"><code>var response = elasticClient.Create(
                      "my-index-name",
                      index =&gt;  index .Mappings(
                          ms =&gt; ms.Map&lt;MyDocumentType&gt;(
                              x =&gt; x.AutoMap()
                          )
                      )
                  );
  </code></pre>
  
  <p>Method is removed in Elasticsearch.NET version 7.</p>