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
Written by Paul Sorensen
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Rails
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#