# Fail to put dynamic mapping after upgrading from 0.90.1. to 1.1.1

**URL:** <https://discuss.elastic.co/t/fail-to-put-dynamic-mapping-after-upgrading-from-0-90-1-to-1-1-1/17340>\
**Category:** Elasticsearch\
**Created:** [May 5, 2014, 1:56am UTC](https://discuss.elastic.co/t/fail-to-put-dynamic-mapping-after-upgrading-from-0-90-1-to-1-1-1/17340 "2014-05-05T01:56:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![deer](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@deer](https://discuss.elastic.co/u/deer)\
**Post date:** [May 5, 2014, 1:56am UTC](https://discuss.elastic.co/t/fail-to-put-dynamic-mapping-after-upgrading-from-0-90-1-to-1-1-1/17340/1 "2014-05-05T01:56:35Z")

</div>

Hi All,

In elasticsearch 0.90.1, we do the following :  
curl -XPUT '[http://localhost:9200/testing/](http://localhost:9200/testing/)' -d '{  
"settings" : {  
"index" : {  
"number\_of\_shards" : 1,  
"number\_of\_replicas" : 0,  
"refresh\_interval" : "1m"  
}  
}  
}'

curl -XPUT '[http://localhost:9200/testing/default/](http://localhost:9200/testing/default/)_mapping?pretty=true' -d  
'{  
"default" : {  
"dynamic\_templates" : [  
{  
"multi\_untouched\_string\_template" : {  
"match" : "multi\_untouched\_string_\*",  
"mapping" : {  
"type" : "multi\_field",  
"fields" : {  
"{name}" : {"type": "{dynamic\_type}",  
"store" : "no", "include\_in\_all": "true"},  
"{name}\_untouched" : {"type": "{dynamic\_type}",  
"index" : "not\_analyzed", "store" : "no", "include\_in\_all": "false"}

```
               }
           }
       }
     }                                                         
   ]
}        

```

}'

There is a dynamic templates add to the default mapping :  
mappings: {  
default: {  
dynamic\_templates: [...],  
properties: { .... }  
}  
}

However, we found that it is not working in elasticsearch 1.1.1. There is  
no dynamic templates added to the default mapping :  
mappings: {  
default: {  
properties: { ... }  
}  
}

And we found that the dynamic template is still supported after  
elasticsearch 1.0.0.  
ref  
: [http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-root-object-type.html#\_dynamic\_templates](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-root-object-type.html#_dynamic_templates)

May I know is there any problem for my scripting? Many thanks.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/78cb07de-fd6a-4797-943a-bf9b0ab6b9fe%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/78cb07de-fd6a-4797-943a-bf9b0ab6b9fe%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:31am UTC](https://discuss.elastic.co/t/fail-to-put-dynamic-mapping-after-upgrading-from-0-90-1-to-1-1-1/17340/2 "2017-07-06T01:31:52Z")

</div>


