Method: Sunspot::Rails::Searchable::ClassMethods#solr_reindex
- Defined in:
- lib/sunspot/rails/searchable.rb
#solr_reindex(options = {}) ⇒ Object
Completely rebuild the index for this class. First removes all instances from the index, then loads records and indexes them.
See #index for information on options, etc.
182 183 184 185 |
# File 'lib/sunspot/rails/searchable.rb', line 182 def solr_reindex( = {}) solr_remove_all_from_index solr_index() end |