avoinministerio/avoinministerio — pull request #191 by jyrkive (2012-07-11 09:14:48+00:00)
Title: Cope with indexing problems

Currently if Searchify can't index a new/changed document or delete a destroyed document from its index, the app crashes. It shouldn't, because

+ crashing doesn't help: as the change has already occurred in the database, the index is already out of date
+ it breaks "rake db:setup" (see [this gist](https://gist.github.com/3083301)), which creates a couple hundred documents at once (a crash in the middle terminates the whole operation)

The last of these commits makes the app cope with indexing problems. If indexing fails, it logs a warning but doesn't crash.