{"action":"closed","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/14467","labels_url":"https://api.github.com/repos/elastic/elasticsearch/issues/14467/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/14467/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/14467/events","html_url":"https://github.com/elastic/elasticsearch/issues/14467","id":114754210,"number":14467,"title":"About field type change question?","user":{"login":"feifeiiiiiiiiiii","id":3310967,"avatar_url":"https://avatars.githubusercontent.com/u/3310967?v=3","gravatar_id":"","url":"https://api.github.com/users/feifeiiiiiiiiiii","html_url":"https://github.com/feifeiiiiiiiiiii","followers_url":"https://api.github.com/users/feifeiiiiiiiiiii/followers","following_url":"https://api.github.com/users/feifeiiiiiiiiiii/following{/other_user}","gists_url":"https://api.github.com/users/feifeiiiiiiiiiii/gists{/gist_id}","starred_url":"https://api.github.com/users/feifeiiiiiiiiiii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/feifeiiiiiiiiiii/subscriptions","organizations_url":"https://api.github.com/users/feifeiiiiiiiiiii/orgs","repos_url":"https://api.github.com/users/feifeiiiiiiiiiii/repos","events_url":"https://api.github.com/users/feifeiiiiiiiiiii/events{/privacy}","received_events_url":"https://api.github.com/users/feifeiiiiiiiiiii/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-03T06:54:22Z","updated_at":"2015-11-03T09:19:40Z","closed_at":"2015-11-03T09:19:40Z","body":"I found `field type` changed, template setting type is `float`, but now change `long`, what causes? \r\n```\r\n{\r\n    \"test\": {\r\n        \"mappings\": {\r\n            \"test\": {\r\n                \"dynamic_templates\": [\r\n                    {\r\n                        \"distr_pan\": {\r\n                            \"mapping\": {\r\n                                \"properties\": {\r\n                                    \"v\": {\r\n                                        \"doc_values\": true,\r\n                                        \"type\": \"float\"\r\n                                    },\r\n                                    \"k\": {\r\n                                        \"index\": \"not_analyzed\",\r\n                                        \"doc_values\": true,\r\n                                        \"type\": \"string\"\r\n                                    }\r\n                                },\r\n                                \"type\": \"nested\"\r\n                            },\r\n                            \"match\": \"distr_pan\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"_all\": {\r\n                    \"enabled\": false\r\n                },\r\n                \"properties\": {\r\n                    \"distr_pan\": {\r\n                        \"type\": \"nested\",\r\n                        \"properties\": {\r\n                            \"k\": {\r\n                                \"type\": \"string\",\r\n                                \"index\": \"not_analyzed\",\r\n                                \"doc_values\": true\r\n                            },\r\n                            \"v\": {\r\n                                \"type\": \"long\",\r\n                                \"doc_values\": true\r\n                            }\r\n                        }\r\n                    }\r\n                }\r\n            }\r\n        }\r\n    }\r\n}\r\n```"}}