{"action":"opened","issue":{"url":"https://api.github.com/repos/taskrabbit/elasticsearch-dump/issues/110","labels_url":"https://api.github.com/repos/taskrabbit/elasticsearch-dump/issues/110/labels{/name}","comments_url":"https://api.github.com/repos/taskrabbit/elasticsearch-dump/issues/110/comments","events_url":"https://api.github.com/repos/taskrabbit/elasticsearch-dump/issues/110/events","html_url":"https://github.com/taskrabbit/elasticsearch-dump/issues/110","id":103624479,"number":110,"title":"Improper handling of  \"analyzer\" in mapping","user":{"login":"joeatbayes","id":6719216,"avatar_url":"https://avatars.githubusercontent.com/u/6719216?v=3","gravatar_id":"","url":"https://api.github.com/users/joeatbayes","html_url":"https://github.com/joeatbayes","followers_url":"https://api.github.com/users/joeatbayes/followers","following_url":"https://api.github.com/users/joeatbayes/following{/other_user}","gists_url":"https://api.github.com/users/joeatbayes/gists{/gist_id}","starred_url":"https://api.github.com/users/joeatbayes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joeatbayes/subscriptions","organizations_url":"https://api.github.com/users/joeatbayes/orgs","repos_url":"https://api.github.com/users/joeatbayes/repos","events_url":"https://api.github.com/users/joeatbayes/events{/privacy}","received_events_url":"https://api.github.com/users/joeatbayes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-28T00:59:10Z","updated_at":"2015-08-28T00:59:10Z","closed_at":null,"body":"The following is one of the fields in the mapping returned from the source server.   This fails when attempting to copy the mappings using the --type=mapping with a error indicating that text_analyzer is recognized.    \r\n\"myfieldname\": { \"type\": \"string\", \"analyzer\": \"text_analyzer\" }\r\n}\r\n\r\nThe original definition for \"text_analyzer\"  was made in a settings command posted with the index creation for the remote index.  Unfortunately those settings are not returned as part of the _mapping from the remote server.   I worked around this by deleting the , \"analyzer\": \"text_analyzer\"  portion and creating the index manually but need cleaner handling.   \r\n\r\nA better handling may be to remove the \"analyzer\" spec if you get an error trying to create that mapping in the target server.\r\n\r\nI was copying from a elastic search version 1.3.1 to 1.7.1 but the same error occured when tested copying into version 1.4.3"}}