Automatic deletion of old documents

Hi there,

Is there a way to configure an index so that every document gets deleted once he is more than 90 days ?

I saw a lot of topics that propose to use a delete query in a crontab job but that sounds very inefficient.
Some other propose to add a lifecycle policy that create a shard every day and delete every shard older than 90 days, this sounds good but I'd like to know if there isn't something built in.

Thanks.

What is your use case? Are you indexing immutable documents or are you performing updates?

I'm pushing immutable documents, I'm not touching them after they were pushed

Check out ILM, which makes the assumption that you are using time based, immutable data.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.