RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: vshkurin
I used a Sunspot with Mongoid like:
gem 'sunspot_mongoid'
#lib/tasks/sunspot.rake namespace :sunspot do namespace :solr do desc "indexes searchable models" task :index => :environment do #[list your models here].each {|model| Sunspot.index!(model.all)} [Article, Tag, User].each {|model| Sunspot.index(model.all)} Sunspot.commit end end end
I advise to pay attention to ElasticSearch and Tire. He also ??based on Lucene, supports real time indexing and easy scalability. But if you don't need it, then better use the Sunspot :)
I used a Sunspot with Mongoid like:
gem 'sunspot_mongoid'
I advise to pay attention to ElasticSearch and Tire. He also ??based on Lucene, supports real time indexing and easy scalability. But if you don't need it, then better use the Sunspot :)