{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/15213","labels_url":"https://api.github.com/repos/elastic/elasticsearch/issues/15213/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/15213/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/15213/events","html_url":"https://github.com/elastic/elasticsearch/pull/15213","id":120151557,"number":15213,"title":"throw exception if a copy_to is within a multi field","user":{"login":"brwe","id":4320215,"avatar_url":"https://avatars.githubusercontent.com/u/4320215?v=3","gravatar_id":"","url":"https://api.github.com/users/brwe","html_url":"https://github.com/brwe","followers_url":"https://api.github.com/users/brwe/followers","following_url":"https://api.github.com/users/brwe/following{/other_user}","gists_url":"https://api.github.com/users/brwe/gists{/gist_id}","starred_url":"https://api.github.com/users/brwe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brwe/subscriptions","organizations_url":"https://api.github.com/users/brwe/orgs","repos_url":"https://api.github.com/users/brwe/repos","events_url":"https://api.github.com/users/brwe/events{/privacy}","received_events_url":"https://api.github.com/users/brwe/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/:Mapping","name":":Mapping","color":"009800"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/enhancement","name":"enhancement","color":"4a4ea8"},{"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.1","name":"v2.0.1","color":"dddddd"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/v2.1.1","name":"v2.1.1","color":"dddddd"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/v2.2.0","name":"v2.2.0","color":"dddddd"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-03T11:39:12Z","updated_at":"2015-12-03T23:44:05Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/elastic/elasticsearch/pulls/15213","html_url":"https://github.com/elastic/elasticsearch/pull/15213","diff_url":"https://github.com/elastic/elasticsearch/pull/15213.diff","patch_url":"https://github.com/elastic/elasticsearch/pull/15213.patch"},"body":"Copy to within multi field is ignored from 2.0 on, see #10802.\r\nInstead of just ignoring it, we should throw an exception if this\r\nis found in the mapping when a mapping is added. For already\r\nexisting indices we should at least log a warning.\r\n\r\nrelated to #14946 \r\n\r\nI made it so that a warning is logged each time a mapping is parsed that has a copy_to in a multi field. \r\nBut the copy_to is not removed from the mapping so now the exception is logged each time the mapping is parsed. Is that OK?\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/comments/161826143","html_url":"https://github.com/elastic/elasticsearch/pull/15213#issuecomment-161826143","issue_url":"https://api.github.com/repos/elastic/elasticsearch/issues/15213","id":161826143,"user":{"login":"rjernst","id":289412,"avatar_url":"https://avatars.githubusercontent.com/u/289412?v=3","gravatar_id":"","url":"https://api.github.com/users/rjernst","html_url":"https://github.com/rjernst","followers_url":"https://api.github.com/users/rjernst/followers","following_url":"https://api.github.com/users/rjernst/following{/other_user}","gists_url":"https://api.github.com/users/rjernst/gists{/gist_id}","starred_url":"https://api.github.com/users/rjernst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjernst/subscriptions","organizations_url":"https://api.github.com/users/rjernst/orgs","repos_url":"https://api.github.com/users/rjernst/repos","events_url":"https://api.github.com/users/rjernst/events{/privacy}","received_events_url":"https://api.github.com/users/rjernst/received_events","type":"User","site_admin":false},"created_at":"2015-12-03T23:44:05Z","updated_at":"2015-12-03T23:44:05Z","body":"Thanks @brwe! I left a few comments."}}