{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/12027","labels_url":"https://api.github.com/repos/elastic/elasticsearch/issues/12027/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/12027/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/12027/events","html_url":"https://github.com/elastic/elasticsearch/pull/12027","id":92909521,"number":12027,"title":"Special case the `_index` field in queries","user":{"login":"markharwood","id":170925,"avatar_url":"https://avatars.githubusercontent.com/u/170925?v=3","gravatar_id":"","url":"https://api.github.com/users/markharwood","html_url":"https://github.com/markharwood","followers_url":"https://api.github.com/users/markharwood/followers","following_url":"https://api.github.com/users/markharwood/following{/other_user}","gists_url":"https://api.github.com/users/markharwood/gists{/gist_id}","starred_url":"https://api.github.com/users/markharwood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markharwood/subscriptions","organizations_url":"https://api.github.com/users/markharwood/orgs","repos_url":"https://api.github.com/users/markharwood/repos","events_url":"https://api.github.com/users/markharwood/events{/privacy}","received_events_url":"https://api.github.com/users/markharwood/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/:Query%20DSL","name":":Query DSL","color":"009800"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/review","name":"review","color":"0052cc"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/v2.0.0","name":"v2.0.0","color":"dddddd"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-03T16:55:58Z","updated_at":"2015-07-05T20:05:00Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/elastic/elasticsearch/pulls/12027","html_url":"https://github.com/elastic/elasticsearch/pull/12027","diff_url":"https://github.com/elastic/elasticsearch/pull/12027.diff","patch_url":"https://github.com/elastic/elasticsearch/pull/12027.patch"},"body":"This change allows queries to test the name of the index by referring to the _index field in query clauses. Adding this capability means we can deprecate the specialist indices query.\r\n\r\nIndexFieldMapper is changed to make the term(s) query factory methods instead produce match_all or match_none queries based on tests of the index name.\r\n\r\nCloses #3316"},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/comments/118662063","html_url":"https://github.com/elastic/elasticsearch/pull/12027#issuecomment-118662063","issue_url":"https://api.github.com/repos/elastic/elasticsearch/issues/12027","id":118662063,"user":{"login":"jpountz","id":299848,"avatar_url":"https://avatars.githubusercontent.com/u/299848?v=3","gravatar_id":"","url":"https://api.github.com/users/jpountz","html_url":"https://github.com/jpountz","followers_url":"https://api.github.com/users/jpountz/followers","following_url":"https://api.github.com/users/jpountz/following{/other_user}","gists_url":"https://api.github.com/users/jpountz/gists{/gist_id}","starred_url":"https://api.github.com/users/jpountz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpountz/subscriptions","organizations_url":"https://api.github.com/users/jpountz/orgs","repos_url":"https://api.github.com/users/jpountz/repos","events_url":"https://api.github.com/users/jpountz/events{/privacy}","received_events_url":"https://api.github.com/users/jpountz/received_events","type":"User","site_admin":false},"created_at":"2015-07-05T20:05:00Z","updated_at":"2015-07-05T20:05:00Z","body":"LGTM!"}}