{"action":"opened","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch-net/issues/1983","repository_url":"https://api.github.com/repos/elastic/elasticsearch-net","labels_url":"https://api.github.com/repos/elastic/elasticsearch-net/issues/1983/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch-net/issues/1983/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch-net/issues/1983/events","html_url":"https://github.com/elastic/elasticsearch-net/issues/1983","id":145677190,"number":1983,"title":"Wrong query processing","user":{"login":"azubanov","id":4849791,"avatar_url":"https://avatars.githubusercontent.com/u/4849791?v=3","gravatar_id":"","url":"https://api.github.com/users/azubanov","html_url":"https://github.com/azubanov","followers_url":"https://api.github.com/users/azubanov/followers","following_url":"https://api.github.com/users/azubanov/following{/other_user}","gists_url":"https://api.github.com/users/azubanov/gists{/gist_id}","starred_url":"https://api.github.com/users/azubanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azubanov/subscriptions","organizations_url":"https://api.github.com/users/azubanov/orgs","repos_url":"https://api.github.com/users/azubanov/repos","events_url":"https://api.github.com/users/azubanov/events{/privacy}","received_events_url":"https://api.github.com/users/azubanov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-04T12:58:51Z","updated_at":"2016-04-04T12:58:51Z","closed_at":null,"body":"**NEST/Elasticsearch.Net version**: 2\r\n\r\n**Elasticsearch version**: 2\r\n\r\n**Query**:\r\n```\r\n\t\t\tvar fDescriptor = new QueryContainerDescriptor<TestObj>();\r\n\t\t\tvar esFilters = new List<QueryContainer>();\r\n\r\n\t\t\tesFilters.Add(fDescriptor.Term(f => f.Field(o => o.Title).Value(\"1\")));\r\n\r\n\t\t\tvar res = client.Search<TestObj>(s => s.Query(q =>\r\n\t\t\t\tfDescriptor.Bool(b => b.Must(esFilters.ToArray())) ||\r\n\t\t\t\t(\r\n\t\t\t\t\t(\r\n\t\t\t\t\t\tq.Term(f => f.Field(o => o.Title).Value(\"3\")) ||\r\n\t\t\t\t\t\tq.Term(f => f.Field(o => o.Title).Value(\"4\"))\r\n\t\t\t\t\t) &&\r\n\t\t\t\t\t(\r\n\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\tq.Term(f => f.Field(o => o.Title).Value(\"5\")) ||\r\n\t\t\t\t\t\t\tq.Term(f => f.Field(o => o.Title).Value(\"6\"))\r\n\t\t\t\t\t\t) &&\r\n\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\tq.Term(f => f.Field(o => o.Title).Value(\"7\")) ||\r\n\t\t\t\t\t\t\tq.Term(f => f.Field(o => o.Title).Value(\"8\"))\r\n\t\t\t\t\t\t)\r\n\t\t\t\t\t)\r\n\t\t\t\t)\r\n\t\t\t\t));\r\n```\r\n**Result json**:\r\n\r\n```\r\nPOST /indexname/testobj/_search\r\n{\r\n  \"query\": {\r\n    \"bool\": {\r\n      \"should\": [\r\n        {\r\n          \"bool\": {\r\n            \"must\": [\r\n              {\r\n                \"term\": {\r\n                  \"title\": {\r\n                    \"value\": \"1\"\r\n                  }\r\n                }\r\n              }\r\n            ]\r\n          }\r\n        },\r\n        {\r\n          \"bool\": {\r\n            \"should\": [\r\n              {\r\n                \"term\": {\r\n                  \"title\": {\r\n                    \"value\": \"3\"\r\n                  }\r\n                }\r\n              },\r\n              {\r\n                \"term\": {\r\n                  \"title\": {\r\n                    \"value\": \"4\"\r\n                  }\r\n                }\r\n              },\r\n              {\r\n                \"term\": {\r\n                  \"title\": {\r\n                    \"value\": \"5\"\r\n                  }\r\n                }\r\n              },\r\n              {\r\n                \"term\": {\r\n                  \"title\": {\r\n                    \"value\": \"6\"\r\n                  }\r\n                }\r\n              },\r\n              {\r\n                \"term\": {\r\n                  \"title\": {\r\n                    \"value\": \"7\"\r\n                  }\r\n                }\r\n              },\r\n              {\r\n                \"term\": {\r\n                  \"title\": {\r\n                    \"value\": \"8\"\r\n                  }\r\n                }\r\n              }\r\n            ]\r\n          }\r\n        }\r\n      ]\r\n    }\r\n  }\r\n}\r\n```\r\n\r\n**Describe the issue**:\r\nwrong bool nesting. all conditions on the same level."}}