{"action":"created","issue":{"url":"https://api.github.com/repos/olivere/elastic/issues/47","labels_url":"https://api.github.com/repos/olivere/elastic/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/olivere/elastic/issues/47/comments","events_url":"https://api.github.com/repos/olivere/elastic/issues/47/events","html_url":"https://github.com/olivere/elastic/issues/47","id":59448600,"number":47,"title":"I need a Get request,but default is POST and can't be modify.","user":{"login":"fangjianwei","id":1961795,"avatar_url":"https://avatars.githubusercontent.com/u/1961795?v=3","gravatar_id":"","url":"https://api.github.com/users/fangjianwei","html_url":"https://github.com/fangjianwei","followers_url":"https://api.github.com/users/fangjianwei/followers","following_url":"https://api.github.com/users/fangjianwei/following{/other_user}","gists_url":"https://api.github.com/users/fangjianwei/gists{/gist_id}","starred_url":"https://api.github.com/users/fangjianwei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fangjianwei/subscriptions","organizations_url":"https://api.github.com/users/fangjianwei/orgs","repos_url":"https://api.github.com/users/fangjianwei/repos","events_url":"https://api.github.com/users/fangjianwei/events{/privacy}","received_events_url":"https://api.github.com/users/fangjianwei/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-02T07:46:12Z","updated_at":"2015-03-02T08:25:39Z","closed_at":null,"body":"In  the search.go,i need a Get request,but default is POST and can't be modify.\r\n\r\nThe return result is not same when use the get and post,so the 'GET' is required.\r\n\r\n```\r\n\r\n2015/03/02 15:23:26 POST /vehicles/_search?pretty=true HTTP/1.1\r\nHost: localhost:9200\r\nUser-Agent: elastic/1.3.1 (windows-amd64)\r\nTransfer-Encoding: chunked\r\nAccept: application/json\r\nContent-Type: application/json\r\nAccept-Encoding: gzip\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/olivere/elastic/issues/comments/76673704","html_url":"https://github.com/olivere/elastic/issues/47#issuecomment-76673704","issue_url":"https://api.github.com/repos/olivere/elastic/issues/47","id":76673704,"user":{"login":"olivere","id":134848,"avatar_url":"https://avatars.githubusercontent.com/u/134848?v=3","gravatar_id":"","url":"https://api.github.com/users/olivere","html_url":"https://github.com/olivere","followers_url":"https://api.github.com/users/olivere/followers","following_url":"https://api.github.com/users/olivere/following{/other_user}","gists_url":"https://api.github.com/users/olivere/gists{/gist_id}","starred_url":"https://api.github.com/users/olivere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olivere/subscriptions","organizations_url":"https://api.github.com/users/olivere/orgs","repos_url":"https://api.github.com/users/olivere/repos","events_url":"https://api.github.com/users/olivere/events{/privacy}","received_events_url":"https://api.github.com/users/olivere/received_events","type":"User","site_admin":false},"created_at":"2015-03-02T08:25:39Z","updated_at":"2015-03-02T08:25:39Z","body":"Okay. I'm not sure why this happens. And before I add anything, I need to understand the reason. Okay?\r\n\r\nFirst, there shouldn't be any difference, really. It must have something to do with your setup/network. Is there a proxy involved that may cut the body for HTTP GET requests, or do you have a 1:1 connection to ES without anything in between? Can you somehow check if the GET body arrives at ES, maybe by logging it? I'm not sure if it's in the HTTP spec, but GET requests probably shouldn't have a body (but most clients/servers don't care any submit it anyway)... but maybe that's the problem here.\r\n\r\nThe Ruby client has a setting called `send_get_body_as` which you can change to `POST`. But as far as I can see it only changes the HTTP method from `GET` to `POST` and doesn't change the serialization. Of course I can add such a setting, but as I said: I want to know first why/when this problem occurs.\r\n\r\nIn the meantime, can you try the following to see if it does make a difference?\r\n\r\nYou can inject a different `http.Transport` into Elastic, and provide that with your own `http.Client`. In the transport, you could change the `GET` to `POST`. Can you [please try out this example](https://github.com/olivere/elastic/wiki/HttpTransport) and report back if it solves your problem?\r\n"}}