Regarding the implementation of _ttl


Hello all,

I've got a small question regarding the implementation of the _ttl field.

It is written in the docs that

The current _ttl implementation is deprecated and will be replaced with a different implementation in a future version.

Will the usage of the field be changed too? And when is the estimated time these changes will be impelmented?

Best regards,


(Isabel Drost-Fromm) #2

The migration guide might be helpful for you:

Quoting said guide: "The _timestamp and _ttl fields are deprecated, but will remain functional for the remainder of the 2.x series.

Instead of the _timestamp field, use a normal date field and set the value explicitly.

The current _ttl functionality will be replaced in a future version with a new implementation of TTL, possibly with different semantics, and will not depend on the _timestamp field."

Hope this helps,

(Mark Walkom) #3

You can/should use time based indices instead.

(system) #4