Re: Asynchronous Solr indexing not working
Thanks for the info Guillaume. I'll try that. Nick - I'm currently using Rails 2.3.10 (although I was recently on 2.3.8 with the same problem) and Sunspot 1.1. On Oct 25, 1:19 am, Nick Zadrozny n...@onemorecloud.com wrote: Hi Graeme and Guillame, What versions of Rails and Sunspot are you two using? -- Nick Zadrozny -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
Re: Asynchronous Solr indexing not working
rails 3.0.1 and those gems (I also had trouble with the one mentionned in the docs. could me because of my setup though) gem 'sunspot', '1.2rc2' gem 'sunspot_rails', '1.2rc2' 2010/10/25 Graeme Simpson gra...@simmo.gs Thanks for the info Guillaume. I'll try that. Nick - I'm currently using Rails 2.3.10 (although I was recently on 2.3.8 with the same problem) and Sunspot 1.1. On Oct 25, 1:19 am, Nick Zadrozny n...@onemorecloud.com wrote: Hi Graeme and Guillame, What versions of Rails and Sunspot are you two using? -- Nick Zadrozny -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.comheroku%2bunsubscr...@googlegroups.com . 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 her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
Asynchronous Solr indexing not working
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 her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
Re: Asynchronous Solr indexing not working
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 gra...@simmo.gs 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 her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.comheroku%2bunsubscr...@googlegroups.com . 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 her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
Re: Asynchronous Solr indexing not working
Hi Graeme and Guillame, What versions of Rails and Sunspot are you two using? -- Nick Zadrozny -- You received this message because you are subscribed to the Google Groups Heroku group. To post to this group, send email to her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.