Sunspot doesn’t seem to be indexing objects created using rake tasks. I can’t find anything in the docs about that one way one or another. Is this normal? I’m using sunspot_rails 1.2.1
Sunspot doesn’t seem to be indexing objects created using rake tasks. I can’t find
Share
Yes, this is fully normal. If you want Solr to index changes made from rake task, use Sunspot’s commands Sunspot.index and Sunspot.commit after creating activerecord objects.
http://outoftime.github.com/sunspot/docs/classes/Sunspot.html