ankane/searchkick — pull request #88 by jtomaszewski (2013-12-22 01:57:22+00:00)
Title: Temporarily disable searchkick

I have some rake tasks when I do mass edit on almost all my models. Thus it reindexes all models one-by-one, which is expensive (1000000 requests to ElasticSearch instead of bulk requests).

Do you think `searchkick_enable` and searchkick_disable` methods would be okay in `model.rb` ?, so I could do:
```ruby
Product.searchkick_disable
MyProductsExpensiveTask.execute
Product.searchkick_enable
Product.reindex
```

Maybe there should be also a global way to turn it off and on, for all models:
```rb
Searchkick.disable
Searchkick.enable
```

What do you think?