{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/18252","repository_url":"https://api.github.com/repos/elastic/elasticsearch","labels_url":"https://api.github.com/repos/elastic/elasticsearch/issues/18252/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/18252/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/18252/events","html_url":"https://github.com/elastic/elasticsearch/issues/18252","id":154100169,"number":18252,"title":"Python Search API Maximum of ~203 fields","user":{"login":"aidan-plenert-macdonald","id":6690599,"avatar_url":"https://avatars.githubusercontent.com/u/6690599?v=3","gravatar_id":"","url":"https://api.github.com/users/aidan-plenert-macdonald","html_url":"https://github.com/aidan-plenert-macdonald","followers_url":"https://api.github.com/users/aidan-plenert-macdonald/followers","following_url":"https://api.github.com/users/aidan-plenert-macdonald/following{/other_user}","gists_url":"https://api.github.com/users/aidan-plenert-macdonald/gists{/gist_id}","starred_url":"https://api.github.com/users/aidan-plenert-macdonald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aidan-plenert-macdonald/subscriptions","organizations_url":"https://api.github.com/users/aidan-plenert-macdonald/orgs","repos_url":"https://api.github.com/users/aidan-plenert-macdonald/repos","events_url":"https://api.github.com/users/aidan-plenert-macdonald/events{/privacy}","received_events_url":"https://api.github.com/users/aidan-plenert-macdonald/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-10T20:33:38Z","updated_at":"2016-05-10T20:39:29Z","closed_at":"2016-05-10T20:39:29Z","body":"In the Python API, I can only list ~203 fields. \r\n\r\n`data = es.search(index='cms*', fields=fields.keys())`\r\n\r\nI have to truncate the fields.keys() to 202 in length. I am assuming that this is due to some max limit on the HTTP request given that 202 is a rather odd number to have a bug around (ie not a multiple of 10 or 2).\r\n\r\nThe error is\r\n```\r\n  File \"data_proc.py\", line 37, in <module>\r\n    data = es.search(index='cms*', fields=fields.keys())\r\n  File \"/home/users/amacdona/anaconda/lib/python2.7/site-packages/elasticsearch/client/utils.py\", line 69, in _wrapped\r\n    return func(*args, params=params, **kwargs)\r\n  File \"/home/users/amacdona/anaconda/lib/python2.7/site-packages/elasticsearch/client/__init__.py\", line 548, in search\r\n    doc_type, '_search'), params=params, body=body)\r\n  File \"/home/users/amacdona/anaconda/lib/python2.7/site-packages/elasticsearch/transport.py\", line 329, in perform_request\r\n    status, headers, data = connection.perform_request(method, url, params, body, ignore=ignore, timeout=timeout)\r\n  File \"/home/users/amacdona/anaconda/lib/python2.7/site-packages/elasticsearch/connection/http_urllib3.py\", line 105, in perform_request\r\n    raise ConnectionError('N/A', str(e), e)\r\nelasticsearch.exceptions.ConnectionError: ConnectionError(('Connection aborted.', BadStatusLine(\"''\",))) caused by: ProtocolError(('Connection aborted.', BadStatusLine(\"''\",)))\r\n\r\n```\r\n\r\n<!--\r\nGitHub is reserved for bug reports and feature requests. The best place\r\nto ask a general question is at the Elastic Discourse forums at\r\nhttps://discuss.elastic.co. If you are in fact posting a bug report or\r\na feature request, please include one and only one of the below blocks\r\nin your new issue.\r\n-->\r\n\r\n<!--\r\nIf you are filing a bug report, please remove the below feature\r\nrequest block and provide responses for all of the below items.\r\n-->\r\n\r\n**Elasticsearch version**:\r\n\r\n**JVM version**:\r\n\r\n**OS version**:\r\n\r\n**Description of the problem including expected versus actual behavior**:\r\n\r\n**Steps to reproduce**:\r\n 1.\r\n 2.\r\n 3.\r\n\r\n**Provide logs (if relevant)**:\r\n\r\n<!--\r\nIf you are filing a feature request, please remove the above bug\r\nreport block and provide responses for all of the below items.\r\n-->\r\n\r\n**Describe the feature**:\r\n"},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/comments/218284040","html_url":"https://github.com/elastic/elasticsearch/issues/18252#issuecomment-218284040","issue_url":"https://api.github.com/repos/elastic/elasticsearch/issues/18252","id":218284040,"user":{"login":"jasontedor","id":4744941,"avatar_url":"https://avatars.githubusercontent.com/u/4744941?v=3","gravatar_id":"","url":"https://api.github.com/users/jasontedor","html_url":"https://github.com/jasontedor","followers_url":"https://api.github.com/users/jasontedor/followers","following_url":"https://api.github.com/users/jasontedor/following{/other_user}","gists_url":"https://api.github.com/users/jasontedor/gists{/gist_id}","starred_url":"https://api.github.com/users/jasontedor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasontedor/subscriptions","organizations_url":"https://api.github.com/users/jasontedor/orgs","repos_url":"https://api.github.com/users/jasontedor/repos","events_url":"https://api.github.com/users/jasontedor/events{/privacy}","received_events_url":"https://api.github.com/users/jasontedor/received_events","type":"User","site_admin":false},"created_at":"2016-05-10T20:39:29Z","updated_at":"2016-05-10T20:39:29Z","body":"There's a [dedicated repository](https://github.com/elastic/elasticsearch-py) for issues regarding the Python client."}}