title: Nest - Point Alias to new index
body: <p>I have multiple indices, sets say <code>index_test1</code> and <code>index_test2</code>. The newest index should always have an alias called <code>the_alias</code>. Creating this alias is pretty easy with</p>
  
  <pre><code>client.CreateIndex("index_test3", d =&gt; d
      .Mappings(ms =&gt; ms ...
      .Alias(a =&gt; a.Alias("the_alias"))
  );
  </code></pre>
  
  <p>But now the alias does not disappear on the other indexes but points to multiple ones. </p>
  
  <p>When I create a new index I want to remove the alias from the old index but I don't know the name of the old index, how can I do this?</p>
  
  <p>In other answers I saw stuff like <code>Client.Swap</code> but <code>ElasticClient</code> does not have that method.</p>