Post.solr_reindex
There are a number of options that can be passed to solr_reindex. The same parameters as for the index; from the documentation
in packages of 50, fix after each
Post.index
index all rows at once and then commit
Post.index(:batch_size => nil)
in batches of 50, record when all batches are completed
Post.index(:batch_commit => false)
includes related object + author + when loading into index
Post.index(:include => :author)
source share