Module: Sunspot::Mongoid2::ClassMethods
- Defined in:
- lib/sunspot/mongoid2.rb
Instance Method Summary collapse
-
#solr_index(opt = {}) ⇒ Object
The sunspot solr_index method is very dependent on ActiveRecord, so we’ll change it to work more efficiently with Mongoid.
Instance Method Details
#solr_index(opt = {}) ⇒ Object
The sunspot solr_index method is very dependent on ActiveRecord, so we’ll change it to work more efficiently with Mongoid.
28 29 30 |
# File 'lib/sunspot/mongoid2.rb', line 28 def solr_index(opt={}) Sunspot.index!(all) end |