Going out of my brain trying to get ttl to work! Here are my current
settings. Note that I have tried both _ttl and ttl in the settings below:
{
- domains:
{- settings:
{- index.analysis.analyzer.standard.type: "standard",
- index.analysis.analyzer.default.stopwords.0: "_no_stop_words",
- index.mappings.public.properties.list.all.type: "nested",
- index.mappings.user.properties.list.all.type: "nested",
- index.source.compress: "true",
- index.source.enabled: "true",
- index.merge.policy.merge_factor: "3",
- index.mappings.public._ttl.enabled: "true",
- index.analysis.analyzer.default.type: "standard",
- index.mappings.public._timestamp.enabled: "true",
- index.number_of_shards: "5",
- index.number_of_replicas: "1",
- index.version.created: "190299"
}
}
- settings:
}
in addition I have tried this http://....../domains/public/_mapping with *
PUT* and a request body of: {"public":{"ttl":{"enabled":true}}}
Again, I have tried both ttl and _ttl in the mapping request body. When am
I supposed to use underscores and when am I not? I can't quite get a handle
on that.
After trying to set the ttl mapping, calling _settings on public doesn't
show the actual ttl value I set, suggesting I either set it incorrectly or
the ttl value is hidden:
{
- public:
{- properties:
{- foo:
{- type: "string"
}
}
}
- type: "string"
- foo:
- properties:
}
I've tried setting ttl in the document using the querystring: ?ttl=30s
And in the json body: { "foo":"bar", "_ttl":"30s" }
Just in case "30s" was wrong, I've also tried using 30000 (milliseconds).
Nothing I do causes the document to expire. What am I doing wrong?