_ttl problem


(Zealot Yin) #1

hi:
if i did not set _ttl to enable before,and then i put a lot of data
with filed _ttl into elasticsearch ,when somedays i wanan set the _ttl to
enable,but my data inserted before will never has the chance to be
expired.(in my test on version 1.1.1 only the new inserted data (after set
_ttl enable) will be expired)
is there a way for me to make the old data be expired?

--
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/b7c435a9-459c-4787-a2e2-78dd95176e97%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(David Pilato) #2

You need to reindex old data.
Or use a Delete by query if you want to simply remove them.

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 21 mai 2014 à 06:29, Zealot Yin 0xmalloc@gmail.com a écrit :

hi:
if i did not set _ttl to enable before,and then i put a lot of data with filed _ttl into elasticsearch ,when somedays i wanan set the _ttl to enable,but my data inserted before will never has the chance to be expired.(in my test on version 1.1.1 only the new inserted data (after set _ttl enable) will be expired)
is there a way for me to make the old data be expired?

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/b7c435a9-459c-4787-a2e2-78dd95176e97%40googlegroups.com.
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/3DBD7D91-D234-4DDB-B538-E2C9B42078EE%40pilato.fr.
For more options, visit https://groups.google.com/d/optout.


(system) #3