{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch-rails/issues/643","repository_url":"https://api.github.com/repos/elastic/elasticsearch-rails","labels_url":"https://api.github.com/repos/elastic/elasticsearch-rails/issues/643/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch-rails/issues/643/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch-rails/issues/643/events","html_url":"https://github.com/elastic/elasticsearch-rails/issues/643","id":190842671,"number":643,"title":"temporarily disable or skip elasticsearch callback","user":{"login":"Meekohi","id":10985,"avatar_url":"https://avatars.githubusercontent.com/u/10985?v=3","gravatar_id":"","url":"https://api.github.com/users/Meekohi","html_url":"https://github.com/Meekohi","followers_url":"https://api.github.com/users/Meekohi/followers","following_url":"https://api.github.com/users/Meekohi/following{/other_user}","gists_url":"https://api.github.com/users/Meekohi/gists{/gist_id}","starred_url":"https://api.github.com/users/Meekohi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Meekohi/subscriptions","organizations_url":"https://api.github.com/users/Meekohi/orgs","repos_url":"https://api.github.com/users/Meekohi/repos","events_url":"https://api.github.com/users/Meekohi/events{/privacy}","received_events_url":"https://api.github.com/users/Meekohi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-21T21:38:11Z","updated_at":"2016-11-26T06:53:27Z","closed_at":null,"body":"I have a model with `include Elasticsearch::Model::Callbacks`. I have a task that imports a lot of data -- I'm going to reindex at the end anyway, so would like to skip the elasticsearch callbacks on `.save!`.\r\nAre there any quick tricks for disabling or skipping callbacks? Something like `instance.save(:elasticsearch => false)`?\r\n"},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch-rails/issues/comments/263048057","html_url":"https://github.com/elastic/elasticsearch-rails/issues/643#issuecomment-263048057","issue_url":"https://api.github.com/repos/elastic/elasticsearch-rails/issues/643","id":263048057,"user":{"login":"rubyrider","id":417169,"avatar_url":"https://avatars.githubusercontent.com/u/417169?v=3","gravatar_id":"","url":"https://api.github.com/users/rubyrider","html_url":"https://github.com/rubyrider","followers_url":"https://api.github.com/users/rubyrider/followers","following_url":"https://api.github.com/users/rubyrider/following{/other_user}","gists_url":"https://api.github.com/users/rubyrider/gists{/gist_id}","starred_url":"https://api.github.com/users/rubyrider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubyrider/subscriptions","organizations_url":"https://api.github.com/users/rubyrider/orgs","repos_url":"https://api.github.com/users/rubyrider/repos","events_url":"https://api.github.com/users/rubyrider/events{/privacy}","received_events_url":"https://api.github.com/users/rubyrider/received_events","type":"User","site_admin":false},"created_at":"2016-11-26T06:53:27Z","updated_at":"2016-11-26T06:53:27Z","body":"I would like to suggest to build your own callbacks for controlling your indexing based on your context instead using the default callbacks."}}
{"actor":{"display_login":"rubyrider"}}