Last Updated: February 25, 2016
·
889
· paulnsorensen

Use Lifesaver to asynchronously index your Rails models using Elasticsearch

If you're using Elasticsearch with Rails, there's a good chance you're using tire. One problem I've run into is that reindexing large trees of nested models for my expansive mappings can take quite a bit of time, and it can also be a pain to update the model containing the index when things need updating somewhere down the tree.

So, I have written a gem that leverages Resque to do all of these things for you. Please check it out here: https://github.com/paulnsorensen/lifesaver