# Refreshing TTL without reindexation

**URL:** <https://discuss.elastic.co/t/refreshing-ttl-without-reindexation/10360>\
**Category:** Elasticsearch\
**Created:** [January 15, 2013, 8:19pm UTC](https://discuss.elastic.co/t/refreshing-ttl-without-reindexation/10360 "2013-01-15T20:19:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rzulf](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rzulf/32/1587_2.png) [@Rzulf](https://discuss.elastic.co/u/Rzulf)\
**Post date:** [January 15, 2013, 8:19pm UTC](https://discuss.elastic.co/t/refreshing-ttl-without-reindexation/10360/1 "2013-01-15T20:19:59Z")

</div>

Hi,

I was wondering if there any way to update records TTL without reindexing  
them? Knowing how lucene works rewriting whole record seems to be a  
performance hit.

--

---

<div class="post-metadata">

**Author:** ![Benjamin\_Deveze](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/benjamin_deveze/32/1577_2.png) [@Benjamin\_Deveze](https://discuss.elastic.co/u/Benjamin_Deveze)\
**Post date:** [January 15, 2013, 10:28pm UTC](https://discuss.elastic.co/t/refreshing-ttl-without-reindexation/10360/2 "2013-01-15T22:28:42Z")

</div>

Hi,

you can update the TTL of an indexed document by using the update API which  
under the hood reindex the whole document which of course comes with an  
overhead.

On Tuesday, January 15, 2013 9:19:59 PM UTC+1, Rzulf wrote:

> Hi,
> 
> I was wondering if there any way to update records TTL without reindexing  
> them? Knowing how lucene works rewriting whole record seems to be a  
> performance hit.

--

---

<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, 2:56am UTC](https://discuss.elastic.co/t/refreshing-ttl-without-reindexation/10360/3 "2017-07-06T02:56:17Z")

</div>


