{"action":"opened","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch-dsl-py/issues/468","repository_url":"https://api.github.com/repos/elastic/elasticsearch-dsl-py","labels_url":"https://api.github.com/repos/elastic/elasticsearch-dsl-py/issues/468/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch-dsl-py/issues/468/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch-dsl-py/issues/468/events","html_url":"https://github.com/elastic/elasticsearch-dsl-py/issues/468","id":181457743,"number":468,"title":"using pipe to denote the \"should\" boolean operator nests instead of building a flat list","user":{"login":"vahana","id":1245065,"avatar_url":"https://avatars.githubusercontent.com/u/1245065?v=3","gravatar_id":"","url":"https://api.github.com/users/vahana","html_url":"https://github.com/vahana","followers_url":"https://api.github.com/users/vahana/followers","following_url":"https://api.github.com/users/vahana/following{/other_user}","gists_url":"https://api.github.com/users/vahana/gists{/gist_id}","starred_url":"https://api.github.com/users/vahana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vahana/subscriptions","organizations_url":"https://api.github.com/users/vahana/orgs","repos_url":"https://api.github.com/users/vahana/repos","events_url":"https://api.github.com/users/vahana/events{/privacy}","received_events_url":"https://api.github.com/users/vahana/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-06T16:04:07Z","updated_at":"2016-10-06T16:04:07Z","closed_at":null,"body":"`In [11]: q = Q('bool')\r\n    ...: for each in range(5):\r\n    ...:     q = q | Q('match', val=each)\r\n    ...:\r\n\r\nIn [12]: q.to_dict()\r\nOut[12]:\r\n{'bool': {'should': [{'bool': {'should': [{'bool': {'should': [{'bool': {'should': [{'bool': {'should': [{'bool': {}},\r\n               {'match': {'val': 0}}]}},\r\n            {'match': {'val': 1}}]}},\r\n         {'match': {'val': 2}}]}},\r\n      {'match': {'val': 3}}]}},\r\n   {'match': {'val': 4}}]}}\r\n`\r\n\r\n\r\ninstead it should be a flat list of matches"}}
{"actor":{"display_login":"vahana"}}