I had the exact same issue. so I replaced handle_asynchronously :solr_index
with: after_save :sunspot_commit def sunspot_commit send_later :index_and_solr_index end def index_and_solr_index index! solr_index end and I know have what I expect. not sure why this needs to be done that way and not the doc way, though 2010/10/22 Graeme Simpson <[email protected]> > Howdy, > > I've recently signed up to heroku and I'm having a little trouble with > Solr. > > I'm trying to index news articles as I am collecting them, approx 350 > per minute. They are checked, processed and then saved. I followed the > instructions on the heroku docs, and I have... > > handle_asynchronously :solr_index > > ...at the bottom of my model, along with a couple of workers running > to handle the indexing along with the import tasks. But it doesn't > seem to be doing any indexing! Looking at the heroku logs, the delayed > job process does seem to be running. > > * [Worker(host:railgun64.38351 pid:14550)] acquired lock on > Article#solr_index_without_send_later > * [JOB] host:railgun64.38351 pid:14550 completed after 0.0289 > > If I leave it running for a while and run a full text search I get no > results. But if I trigger a manual index of the model by running > 'Model.index', the search works fine afterwards. At the moment I've > got the index process running every ten minutes, which is probably a > horrible way of doing it. > > How do I kick the asynchronous indexing into action? > > Many thanks, > Graeme > > -- > You received this message because you are subscribed to the Google Groups > "Heroku" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<heroku%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/heroku?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
