# Is TTL config change in 1.2?

**URL:** <https://discuss.elastic.co/t/is-ttl-config-change-in-1-2/18489>\
**Category:** Elasticsearch\
**Created:** [July 5, 2014, 3:59pm UTC](https://discuss.elastic.co/t/is-ttl-config-change-in-1-2/18489 "2014-07-05T15:59:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![seb\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/seb_2/32/1419_2.png) [@seb\_2](https://discuss.elastic.co/u/seb_2)\
**Post date:** [July 5, 2014, 3:59pm UTC](https://discuss.elastic.co/t/is-ttl-config-change-in-1-2/18489/1 "2014-07-05T15:59:31Z")

</div>

Hi

I used to create index with a TTL like this

curl -X POST [http://localhost:9200/index\_test](http://localhost:9200/index_test) -d '{  
"mappings":{  
"document":{  
"\_ttl":{  
"enable":true  
},  
"properties":{  
"text":{  
"type":"string"  
}  
}  
}  
},  
"settings":{  
"number\_of\_replicas":1,  
"number\_of\_shards":1,  
}  
}  
}'

and when I check [http://localhost:9298/index\_test/\_mapping](http://localhost:9298/index_test/_mapping) I have

{  
"index\_test" : {  
"mappings" : {  
"document" : {  
"\_ttl" : {  
"enabled" : true  
},  
"properties" : {  
"text" : {  
"type" : "string"  
}  
}  
}  
}  
}  
}

Every thing works perfectly but On my last update to 1.2 when I  
check [http://localhost:9298/index\_test/\_mapping](http://localhost:9298/index_test/_mapping) I only have

{  
"index\_test" : {  
"mappings" : {  
"properties" : {  
"text" : {  
"type" : "string"  
}  
}  
}  
}  
}  
}

ttl has gone and ttl don't work anymore. Is there a new setting for TTL?  
Thanks a lot

--  
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/098f4d11-33ee-4b08-a619-069e36043a06%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/098f4d11-33ee-4b08-a619-069e36043a06%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![seb\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/seb_2/32/1419_2.png) [@seb\_2](https://discuss.elastic.co/u/seb_2)\
**Post date:** [July 5, 2014, 4:17pm UTC](https://discuss.elastic.co/t/is-ttl-config-change-in-1-2/18489/2 "2014-07-05T16:17:06Z")

</div>

sorry typo: enable vs enabled

On Saturday, July 5, 2014 5:59:31 PM UTC+2, seb wrote:

> Hi
> 
> I used to create index with a TTL like this
> 
> curl -X POST [http://localhost:9200/index\_test](http://localhost:9200/index_test) -d '{  
> "mappings":{  
> "document":{  
> "\_ttl":{  
> "enable":true  
> },  
> "properties":{  
> "text":{  
> "type":"string"  
> }  
> }  
> }  
> },  
> "settings":{  
> "number\_of\_replicas":1,  
> "number\_of\_shards":1,  
> }  
> }  
> }'
> 
> and when I check [http://localhost:9298/index\_test/\_mapping](http://localhost:9298/index_test/_mapping) I have
> 
> {  
> "index\_test" : {  
> "mappings" : {  
> "document" : {  
> "\_ttl" : {  
> "enabled" : true  
> },  
> "properties" : {  
> "text" : {  
> "type" : "string"  
> }  
> }  
> }  
> }  
> }  
> }
> 
> Every thing works perfectly but On my last update to 1.2 when I check  
> [http://localhost:9298/index\_test/\_mapping](http://localhost:9298/index_test/_mapping) I only have
> 
> {  
> "index\_test" : {  
> "mappings" : {  
> "properties" : {  
> "text" : {  
> "type" : "string"  
> }  
> }  
> }  
> }  
> }  
> }
> 
> ttl has gone and ttl don't work anymore. Is there a new setting for TTL?  
> Thanks a lot

--  
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/34b47d96-53d1-4fcc-a8b6-907a231cacfe%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/34b47d96-53d1-4fcc-a8b6-907a231cacfe%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:17am UTC](https://discuss.elastic.co/t/is-ttl-config-change-in-1-2/18489/3 "2017-07-06T01:17:48Z")

</div>


