karmi/tire — pull request #209 by woahdae (2012-01-18 17:40:09+00:00)
Title: Add alias support to indexes

Adds:

* Tire::aliases
* Tire::Index#aliases
* Tire::Index#add_alias
* Tire::Index#remove_alias

Among other uses for aliases, this enables on-the-fly index rotation
scripting.

I wasn't sure what your stance on integration tests are, and/or whether you would want integration tests for these. Unit tests are included, though.

I have a couple other methods that round out the on-the-fly index rotation implementation, https://gist.github.com/1634344, but didn't include them here because reindex is ActiveRecord specific and inverted_aliases' name I'm not confident about.

Opinions/thoughts?