Elastic search - renaming a type
<p>I have a problem of re-indexing only part of the index data in elastic search.</p>

<p>Using PHP elastic search client.</p>

<p>Let's say I have an index <code>myindex</code> with types <code>type1</code> and <code>type2</code>.</p>

<p>Now some of the fields in <code>type2</code> changes and I need to change the mapping.</p>

<p>After reading their docs, I thought that I could get away by creating a new type and creating an alias, but unfortunately it seems that you cannot have alias for types, it's only applicable for index.</p>

<p>Then, I thought to create a new temporary mapping for <code>newtype2</code>, copy data from <code>type2</code> to <code>newtype2</code> and delete <code>type2</code>.</p>

<p>But now I cannot find any way to rename a type.</p>