lib/sunspot/mongoid2.rb
# 
# Find IDs of records of this class that are indexed in Solr but do not
# exist in the database, and remove them from Solr. Under normal
# circumstances, this should not be necessary; this method is provided
# in case something goes wrong.
#
# ==== Options (passed as a hash)
#
# batch_size<Integer>:: Batch size with which to load records
#                       Default is 50
# 
Find IDs of records of this class that are indexed in Solr but do not
exist in the database, and remove them from Solr. Under normal
circumstances, this should not be necessary; this method is provided
in case something goes wrong.

Options (passed as a hash)

batch_size:: Batch size with which to load records
Default is 50
Find IDs of records of this class that are indexed in Solr but do not exist in the database and remove them from Solr . Under normal circumstances this should not be necessary ; this method is provided in case something goes wrong . Options ( passed as a hash ) batch_size :: Batch size with which to load records Default is 50
def solr_clean_index_orphans(opts={})
        solr_index_orphans(opts).each do |id|
          new do |fake_instance|
            fake_instance._id = id
          end.solr_remove_from_index
        end
      end
def solr_clean_index_orphans ( opts = { } ) solr_index_orphans ( opts ) . each do | id | new do | fake_instance | fake_instance . _id = id end . solr_remove_from_index end end
Find IDs of records of this class that are indexed in Solr but do not
exist in the database, and remove them from Solr.
Find IDs of records of this class that are indexed in Solr but do not exist in the database and remove them from Solr .
opts
<not_specific>