{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/13112","labels_url":"https://api.github.com/repos/elastic/elasticsearch/issues/13112/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/13112/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/13112/events","html_url":"https://github.com/elastic/elasticsearch/issues/13112","id":103131473,"number":13112,"title":"Default mapping causing conflicts","user":{"login":"spalger","id":1329312,"avatar_url":"https://avatars.githubusercontent.com/u/1329312?v=3","gravatar_id":"","url":"https://api.github.com/users/spalger","html_url":"https://github.com/spalger","followers_url":"https://api.github.com/users/spalger/followers","following_url":"https://api.github.com/users/spalger/following{/other_user}","gists_url":"https://api.github.com/users/spalger/gists{/gist_id}","starred_url":"https://api.github.com/users/spalger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spalger/subscriptions","organizations_url":"https://api.github.com/users/spalger/orgs","repos_url":"https://api.github.com/users/spalger/repos","events_url":"https://api.github.com/users/spalger/events{/privacy}","received_events_url":"https://api.github.com/users/spalger/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/blocker","name":"blocker","color":"e11d21"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/bug","name":"bug","color":"9e2c2c"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/v2.0.0","name":"v2.0.0","color":"dddddd"}],"state":"open","locked":false,"assignee":{"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},"milestone":null,"comments":1,"created_at":"2015-08-25T22:34:25Z","updated_at":"2015-08-26T09:31:14Z","closed_at":null,"body":"While using the 2.0 branch, @jbudz and I are noticing that `_default_` mappings always cause unresolvable type conflicts.\r\n\r\nThis is the mapping we are testing with:\r\n```curl\r\ncurl -XPOST localhost:9200/logstash-2015.08.25 -d '{\r\n  \"mappings\":{\r\n    \"_default_\": {\r\n      \"properties\":{\r\n        \"ip\":{\r\n          \"type\":\"ip\"\r\n        }\r\n      }\r\n    }\r\n  }\r\n}'\r\n```\r\n\r\nAnd the documents that we are sending:\r\n```\r\ncurl -XPOST localhost:9200/_bulk -d '{\"index\":{\"_index\":\"logstash-2015.08.25\",\"_type\":\"apache\"}}\r\n{\"index\":\"logstash-2015.08.25\",\"ip\":\"192.168.1.1\"}\r\n{\"index\":{\"_index\":\"logstash-2015.08.25\",\"_type\":\"nginx\"}}\r\n{\"index\":\"logstash-2015.08.25\",\"ip\":\"192.168.1.1\"}\r\n'\r\n```\r\n\r\nBut the bulk fails with `\"Mapper for [ip] conflicts with existing mapping in other types:\\n[mapper [ip] is used by multiple types. Set update_all_types to true to update [search_analyzer] across all types.]\"`. \r\n\r\nSince we are using `_default_` as the type, it seems like `update_all_types` should not be needed, since we are not actually creating the types until the documents are indexed."},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/comments/134918117","html_url":"https://github.com/elastic/elasticsearch/issues/13112#issuecomment-134918117","issue_url":"https://api.github.com/repos/elastic/elasticsearch/issues/13112","id":134918117,"user":{"login":"clintongormley","id":56599,"avatar_url":"https://avatars.githubusercontent.com/u/56599?v=3","gravatar_id":"","url":"https://api.github.com/users/clintongormley","html_url":"https://github.com/clintongormley","followers_url":"https://api.github.com/users/clintongormley/followers","following_url":"https://api.github.com/users/clintongormley/following{/other_user}","gists_url":"https://api.github.com/users/clintongormley/gists{/gist_id}","starred_url":"https://api.github.com/users/clintongormley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clintongormley/subscriptions","organizations_url":"https://api.github.com/users/clintongormley/orgs","repos_url":"https://api.github.com/users/clintongormley/repos","events_url":"https://api.github.com/users/clintongormley/events{/privacy}","received_events_url":"https://api.github.com/users/clintongormley/received_events","type":"User","site_admin":false},"created_at":"2015-08-26T09:31:14Z","updated_at":"2015-08-26T09:31:14Z","body":"@rjernst could you take a look please"}}