{"action":"created","issue":{"url":"https://api.github.com/repos/toptal/chewy/issues/271","labels_url":"https://api.github.com/repos/toptal/chewy/issues/271/labels{/name}","comments_url":"https://api.github.com/repos/toptal/chewy/issues/271/comments","events_url":"https://api.github.com/repos/toptal/chewy/issues/271/events","html_url":"https://github.com/toptal/chewy/issues/271","id":112215026,"number":271,"title":"Importing to amazon elastic search service","user":{"login":"drnluz","id":683950,"avatar_url":"https://avatars.githubusercontent.com/u/683950?v=3","gravatar_id":"","url":"https://api.github.com/users/drnluz","html_url":"https://github.com/drnluz","followers_url":"https://api.github.com/users/drnluz/followers","following_url":"https://api.github.com/users/drnluz/following{/other_user}","gists_url":"https://api.github.com/users/drnluz/gists{/gist_id}","starred_url":"https://api.github.com/users/drnluz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drnluz/subscriptions","organizations_url":"https://api.github.com/users/drnluz/orgs","repos_url":"https://api.github.com/users/drnluz/repos","events_url":"https://api.github.com/users/drnluz/events{/privacy}","received_events_url":"https://api.github.com/users/drnluz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-19T19:29:14Z","updated_at":"2015-12-16T14:36:02Z","closed_at":null,"body":"Hello. I'm trying to import a model to the amazon elasticsearch service but I'm getting the following error:\r\n\r\n`Elasticsearch::Transport::Transport::Errors::Forbidden: [403] {\"message\":\"When Content-Type:application/x-www-form-urlencoded, URL cannot include query-string parameters (after '?'): '/all/factory/_bulk?refresh=false'\"}`\r\n\r\nDigging a little I found that amazon ES service does not accept query parameters.\r\nIs there a way to run `MyIndex.reset!` without sending `refresh` as a query parameter?"},"comment":{"url":"https://api.github.com/repos/toptal/chewy/issues/comments/165127442","html_url":"https://github.com/toptal/chewy/issues/271#issuecomment-165127442","issue_url":"https://api.github.com/repos/toptal/chewy/issues/271","id":165127442,"user":{"login":"feymartynov","id":1500700,"avatar_url":"https://avatars.githubusercontent.com/u/1500700?v=3","gravatar_id":"","url":"https://api.github.com/users/feymartynov","html_url":"https://github.com/feymartynov","followers_url":"https://api.github.com/users/feymartynov/followers","following_url":"https://api.github.com/users/feymartynov/following{/other_user}","gists_url":"https://api.github.com/users/feymartynov/gists{/gist_id}","starred_url":"https://api.github.com/users/feymartynov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/feymartynov/subscriptions","organizations_url":"https://api.github.com/users/feymartynov/orgs","repos_url":"https://api.github.com/users/feymartynov/repos","events_url":"https://api.github.com/users/feymartynov/events{/privacy}","received_events_url":"https://api.github.com/users/feymartynov/received_events","type":"User","site_admin":false},"created_at":"2015-12-16T14:36:02Z","updated_at":"2015-12-16T14:36:02Z","body":"Had the same issue with AWS. Fixed with explicitly specifying Content-Type header in `chewy.yml`:\r\n```yaml\r\nproduction:\r\n  host: 'some-host.es.amazonaws.com:80'\r\n  transport_options:\r\n    headers:\r\n      content_type: 'application/json'\r\n```"}}