{"action":"reopened","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch-rails/issues/513","labels_url":"https://api.github.com/repos/elastic/elasticsearch-rails/issues/513/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch-rails/issues/513/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch-rails/issues/513/events","html_url":"https://github.com/elastic/elasticsearch-rails/issues/513","id":123898544,"number":513,"title":"copy_to how to ","user":{"login":"caherrerapa","id":1084920,"avatar_url":"https://avatars.githubusercontent.com/u/1084920?v=3","gravatar_id":"","url":"https://api.github.com/users/caherrerapa","html_url":"https://github.com/caherrerapa","followers_url":"https://api.github.com/users/caherrerapa/followers","following_url":"https://api.github.com/users/caherrerapa/following{/other_user}","gists_url":"https://api.github.com/users/caherrerapa/gists{/gist_id}","starred_url":"https://api.github.com/users/caherrerapa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caherrerapa/subscriptions","organizations_url":"https://api.github.com/users/caherrerapa/orgs","repos_url":"https://api.github.com/users/caherrerapa/repos","events_url":"https://api.github.com/users/caherrerapa/events{/privacy}","received_events_url":"https://api.github.com/users/caherrerapa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-25T21:41:17Z","updated_at":"2015-12-30T08:00:21Z","closed_at":null,"body":"Hi\r\nIm trying to copy the decoded content using attachment plugin and in order to do this i'm trying to use copy_to on a model in the following way\r\n\r\n```\r\nindexes :resume_file, type: 'attachment', copy_to: 'resume_content'\r\nindexes :resume_content, type: 'string'\r\n```\r\n\r\nBut i get the following\r\n```\r\nElasticsearch::Transport::Transport::Errors::BadRequest: [400] {\"error\":{\"root_cause\":[{\"type\":\"mapper_parsing_exception\",\"reason\":\"Mapping definition for [resume_file] has unsupported parameters:  [copy_to : resume_content]\"}],\"type\":\"mapper_parsing_exception\",\"reason\":\"Failed to parse mapping [candidate]: Mapping definition for [resume_file] has unsupported parameters:  [copy_to : resume_content]\",\"caused_by\":{\"type\":\"mapper_parsing_exception\",\"reason\":\"Mapping definition for [resume_file] has unsupported parameters:  [copy_to : resume_content]\"}},\"status\":400}\r\n```\r\n\r\nIs there any way to make the copy_to work with Elasticsearch::Model ?"}}