Module: Sunspot::MongoMapper::ClassMethods

Defined in:
lib/sunspot/mongomapper.rb

Instance Method Summary collapse

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.



45
46
47
# File 'lib/sunspot/mongomapper.rb', line 45

def solr_index(opt={})
  Sunspot.index!(all)
end