Changing TTL of all documents in an index?

What's the best way to change the TTL of all documents already written in
an index? Can up just update the TTL or do I have to re-index everything?

I was thinking that if I have to update the TTL often maybe I just write a
manual garbage collector and do my own cleanup.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/01c0a83f-8467-406e-b45c-56d9bc9edaff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

You can set the same TTL for all docs in an index -

If you're updating the TTL often, then perhaps using time based indexes
would be a better idea? TTL is resource heavy.

On 30 January 2015 at 06:35, Kevin Burton burtonator@gmail.com wrote:

What's the best way to change the TTL of all documents already written in
an index? Can up just update the TTL or do I have to re-index everything?

I was thinking that if I have to update the TTL often maybe I just write a
manual garbage collector and do my own cleanup.

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/01c0a83f-8467-406e-b45c-56d9bc9edaff%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/01c0a83f-8467-406e-b45c-56d9bc9edaff%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAEYi1X-itYa4n0PxvyzK2GzJrjm3EENkvXaKK7D3N%3DdTubva5Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.