{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch-py/issues/281","labels_url":"https://api.github.com/repos/elastic/elasticsearch-py/issues/281/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch-py/issues/281/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch-py/issues/281/events","html_url":"https://github.com/elastic/elasticsearch-py/issues/281","id":110470447,"number":281,"title":"Inconsistent response to elasticSearch queries","user":{"login":"ravir4","id":15034582,"avatar_url":"https://avatars.githubusercontent.com/u/15034582?v=3","gravatar_id":"","url":"https://api.github.com/users/ravir4","html_url":"https://github.com/ravir4","followers_url":"https://api.github.com/users/ravir4/followers","following_url":"https://api.github.com/users/ravir4/following{/other_user}","gists_url":"https://api.github.com/users/ravir4/gists{/gist_id}","starred_url":"https://api.github.com/users/ravir4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ravir4/subscriptions","organizations_url":"https://api.github.com/users/ravir4/orgs","repos_url":"https://api.github.com/users/ravir4/repos","events_url":"https://api.github.com/users/ravir4/events{/privacy}","received_events_url":"https://api.github.com/users/ravir4/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-08T14:59:34Z","updated_at":"2015-10-10T12:59:36Z","closed_at":null,"body":"Hello, I am running very simple searches against ElasticSearch (from Ipython notebook) and I get mixed results.\r\nAny help is greatly appreciated.\r\n\r\nHere are some code snippets that I am using\r\n\r\nThis one works:\r\n--------\r\nfrom elasticsearch import Elasticsearch\r\nes = Elasticsearch('https:/........) \r\n\r\nres = es.search(index = '<index>', doc_type = \"Devices')\r\nprint res['hits']['total']\r\n\r\n----------\r\n\r\nThis one doesn't work (I tried limiting the number of docs with matches thinking it maybe too many docs but same error)\r\n\r\n-----\r\nfrom elasticsearch import Elasticsearch\r\nes = Elasticsearch('https:/........) \r\n\r\nres = es.search(index = '<index-name>',body={\"query\": {\"match_all\": {}}})\r\n------\r\nWhen I run the above I get a Transport Error 400:\r\n\r\n\r\n/usr/local/lib/python2.7/dist-packages/elasticsearch/client/utils.pyc in _wrapped(*args, **kwargs)\r\n     67                 if p in kwargs:\r\n     68                     params[p] = kwargs.pop(p)\r\n---> 69             return func(*args, params=params, **kwargs)\r\n     70         return _wrapped\r\n     71     return _wrapper\r\n\r\n/usr/local/lib/python2.7/dist-packages/elasticsearch/client/__init__.pyc in search(self, index, doc_type, body, params)\r\n    525             index = '_all'\r\n    526         _, data = self.transport.perform_request('GET', _make_path(index,\r\n--> 527             doc_type, '_search'), params=params, body=body)\r\n    528         return data\r\n    529 \r\n\r\n/usr/local/lib/python2.7/dist-packages/elasticsearch/transport.pyc in perform_request(self, method, url, params, body)\r\n    305 \r\n    306             try:\r\n--> 307                 status, headers, data = connection.perform_request(method, url, params, body, ignore=ignore, timeout=timeout)\r\n    308 \r\n    309             except TransportError as e:\r\n\r\n/usr/local/lib/python2.7/dist-packages/elasticsearch/connection/http_urllib3.pyc in perform_request(self, method, url, params, body, timeout, ignore)\r\n     91         if not (200 <= response.status < 300) and response.status not in ignore:\r\n     92             self.log_request_fail(method, url, body, duration, response.status)\r\n---> 93             self._raise_error(response.status, raw_data)\r\n     94 \r\n     95         self.log_request_success(method, full_url, url, body, response.status,\r\n\r\n/usr/local/lib/python2.7/dist-packages/elasticsearch/connection/base.pyc in _raise_error(self, status_code, raw_data)\r\n    103             pass\r\n    104 \r\n--> 105         raise HTTP_EXCEPTIONS.get(status_code, TransportError)(status_code, error_message, additional_info)\r\n    106 \r\n    107 \r\n\r\nRequestError: TransportError(400, u'')\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch-py/issues/comments/147087488","html_url":"https://github.com/elastic/elasticsearch-py/issues/281#issuecomment-147087488","issue_url":"https://api.github.com/repos/elastic/elasticsearch-py/issues/281","id":147087488,"user":{"login":"HonzaKral","id":32132,"avatar_url":"https://avatars.githubusercontent.com/u/32132?v=3","gravatar_id":"","url":"https://api.github.com/users/HonzaKral","html_url":"https://github.com/HonzaKral","followers_url":"https://api.github.com/users/HonzaKral/followers","following_url":"https://api.github.com/users/HonzaKral/following{/other_user}","gists_url":"https://api.github.com/users/HonzaKral/gists{/gist_id}","starred_url":"https://api.github.com/users/HonzaKral/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HonzaKral/subscriptions","organizations_url":"https://api.github.com/users/HonzaKral/orgs","repos_url":"https://api.github.com/users/HonzaKral/repos","events_url":"https://api.github.com/users/HonzaKral/events{/privacy}","received_events_url":"https://api.github.com/users/HonzaKral/received_events","type":"User","site_admin":false},"created_at":"2015-10-10T12:59:36Z","updated_at":"2015-10-10T12:59:36Z","body":"The logging is on the python side, not the server"}}