{"action":"closed","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/11939","labels_url":"https://api.github.com/repos/elastic/elasticsearch/issues/11939/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/11939/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/11939/events","html_url":"https://github.com/elastic/elasticsearch/issues/11939","id":92032685,"number":11939,"title":"Query refactoring: improve query validation errors messages by providing more context","user":{"login":"javanna","id":832460,"avatar_url":"https://avatars.githubusercontent.com/u/832460?v=3","gravatar_id":"","url":"https://api.github.com/users/javanna","html_url":"https://github.com/javanna","followers_url":"https://api.github.com/users/javanna/followers","following_url":"https://api.github.com/users/javanna/following{/other_user}","gists_url":"https://api.github.com/users/javanna/gists{/gist_id}","starred_url":"https://api.github.com/users/javanna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javanna/subscriptions","organizations_url":"https://api.github.com/users/javanna/orgs","repos_url":"https://api.github.com/users/javanna/repos","events_url":"https://api.github.com/users/javanna/events{/privacy}","received_events_url":"https://api.github.com/users/javanna/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/:Query%20Refactoring","name":":Query Refactoring","color":"009800"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/enhancement","name":"enhancement","color":"4a4ea8"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-30T09:11:23Z","updated_at":"2015-09-22T12:01:40Z","closed_at":"2015-09-22T12:01:40Z","body":"If you have a compound query composed of different levels of nested queries, which is very common, and one single query fails validation, we currently print out a generic validation error but it is hard to identify which query is the \"broken\" one from the error message. We should improve this, probably by keeping track of where a query is positioned in the query tree and outputting a more specific error message."}}