Wednesday 15 January 2014

ruby on rails - Reindex Sunspot Solr in Capistrano -


I'm following this snippet to add Sunspot Solr to Capistrano and it works, but when I use cap Runs the solter: reindex shows a question (as expected) asking whether I want to drop all the indexes, so I reply with "yes", but the terminal is waiting for a response.

This is the code for reindex:

  desc "reindex entire database" function: reindex ,: roles = & gt; : Stop the app "Rm-RF # {Share Share Path / / LLR Data" to run "CD # {current_path}" & amp; # {Rake} RAILS_ENV = # {rails_env} Sunscott: SLR: Reindex "End   

This message is:

  *" CD / home / user / RPS / AP / Current & amp; Amp; Amp; Bundle exec rake] = Execution sunglasses: solr: Reindex "Server: [" 9.9.9.9 "] [9.9.9.9] execution order ** [out: 9.9.9.9] * Note: reindex function removes your current indexed ** and will start with scratch. ** [out: 9.9.9.9] If you have a large dataset, then reindexing can take a very long time, probably weeks. ** [Out: 9.9.9.9] If you have somewhere Also, or more than 10 million rows, then it has not been encouraged. ** [Out: 9.9.9.9] Are you sure that your indexed and completely Want to drop Re-index? (Y / n) y   

How can I avoid that message? Besides, I would like to run this rake with Cron, then How could I first answer or set the default configuration? And what is the best / efficient method of reindex?

Thanks in advance.

After looking at the source 'ssource_rales source, your method currently precedes this message to force E-way is not seen

A bridge request has been submitted to support a silent option for rack work (one month ago), but it does not merge yet has been done. I either:

  1. Sunlight gem thorns and make changes to do the rack work (then change your desired gem Change your environment to use Gemfile).
  2. Add your capitrain work (for a few more times like this 10 seconds, this command must be taken at any time to appear), and then provide standard input with "y".

No comments:

Post a Comment