Hello,
I have implemented a simple cache with ES.
Basically I rely on _ttl to make sure that the cache is cleaned up automatically.
below is a partial view of the doc stored in the cache.
As you can see: _ttl=5d and the date of the doc is 2015-06-30 which is more that 5 days old.
Any idea why the doc was not deleted from the index?
Antoine
{
"_index": "ubilogs-ncs-15.2.2_cache",
"_type": "cache",
"_id": "AU5E8nqFbXvxIKWU75lr",
"_version": 1,
"_score": null,
"_source": {
"_ttl": "5d",
"device_id": "NTT1141",
"msg_id": "000000585107",
"content": {
"disk": {
"date": "2015-06-30",
"time": "23:30:51",
"msg_id": "000000585107",
"device_id": "FVVM020000038360",
"policy": "to_MSActivator",
...