I have a model that gets it’s view-count updated after it’s viewed. This is causing the model to be reindexed, even though the view-count attribute isn’t indexed. Obviously, I don’t to hit Solr every time the page is viewed.
How can I keep Sunspot from committing the changes to this model during this particular action?
I am just guessing here but is it possible that sunspot is hooked into the rails transaction? If so you might want to update the viewcount manually outside of active record with something like this: