# Expire nested object

**URL:** <https://discuss.elastic.co/t/expire-nested-object/22745>\
**Category:** Elasticsearch\
**Created:** [March 18, 2015, 5:47pm UTC](https://discuss.elastic.co/t/expire-nested-object/22745 "2015-03-18T17:47:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chen\_Wang](https://avatars.discourse-cdn.com/v4/letter/c/b5a626/32.png) [@Chen\_Wang](https://discuss.elastic.co/u/Chen_Wang)\
**Post date:** [March 18, 2015, 5:47pm UTC](https://discuss.elastic.co/t/expire-nested-object/22745/1 "2015-03-18T17:47:41Z")

</div>

It seems that the TTL cannot be set on nested object level, will ES add  
this feature in the future?  
As of now, say if I want to delete blog posts(nested object of user) that  
are 1 year old, do I need to read all the document out, filter out the  
older posts and then write them back?  
Thanks,  
Chen

--  
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/eff3a440-72c3-4508-bf22-7197e3905882%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/eff3a440-72c3-4508-bf22-7197e3905882%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, 12:25am UTC](https://discuss.elastic.co/t/expire-nested-object/22745/2 "2017-07-06T00:25:47Z")

</div>

Closed on July 6, 2017, 12:25am UTC


