elasticsearch alias with rails
<p>I am using rails with elasticsearch, thanks to the elasticsearch-rails gem ( <a href="https://github.com/elastic/elasticsearch-rails/tree/master/elasticsearch-persistence" rel="nofollow noreferrer">https://github.com/elastic/elasticsearch-rails/tree/master/elasticsearch-persistence</a> )</p>

<p>I am using the repository model as described in the documentation, I can change the index, but is it possible to use the alias feature of ES? If so, how?
Example:</p>

<pre><code>require 'elasticsearch/persistence'
repository = Elasticsearch::Persistence::Repository.new
repository.index = "myindex" 
</code></pre>

<p>works fine, but no indication on how to create an alias</p>