Ok I understand your problem and reading the code of IndicesTTLService it
is clearer why you try to disable the TTL field for your specific index so
that it won't be candidate for the purge. Disabling temporarily the TTL
field to disable purge temporarily won't be a great idea because if you
still index docs with TTL the TTL of these docs won't be set. Purge
interval could have helped but I think you are right it is a global setting
and it is not that great to temporarily disable the purge because if you
set it to 24h for example and just after you want to reenable it I am
afraid you will have to wait 24h for the next purge...
I think we should add a global setting to just disable, enable purger and
also a per index setting to do the same.
Kimchy any thoughts on this? If you are ok with that I can open an issue
and implement it.
Thomas for your immediate problem I'm afraid there is not really a
On Thursday, March 15, 2012 12:35:52 PM UTC+1, Thomas Peuss wrote:
Am Donnerstag, 15. März 2012 11:46:41 UTC+1 schrieb Benjamin Devèze:
what exactly do you want to achieve by disabling TTL? Do you mean you
want to suspend the purge process of expired documents temporarily for a
specific index? Or is it that you have a default TTL value set for this
index and you want that temporarily all new indexed docs come with no TTL?
Or is it something else?
We want to suspend the purge process. I know that we can set the purge
interval. As far as I know this is a global setting. We only want to
disable it for one index.