Reputation: 982
I have an index and enabled automatic retention of documents using the "_ttl"-feature. The ttl works as a charm but it has been discovered that the data was quite valuable and has to be kept.
I've tried to make a snapshot and then restore it but with no luck. My last resort would be to fetch all documents and re-insert them, but that is a bit cumbersome. Can I disable _ttl in any nicer way for my old documents?
Elasticsearch version: 1.7.3
Upvotes: 1
Views: 381
Reputation: 10278
It seems that IndicesTTLService
class has a property called index.ttl.disable_purge
(link to the code). Try to set that property to true. If you don't know how to update indices settings this is the link to the api doc
A plan B would be set the refresh interval (property indices.ttl.interval
) to a really big value.
Upvotes: 1