_ttl question

Hi!

I have a question regarding the _ttl setting. Say that I have an index
where I've specified the default time to live as "2 days". Now am I
able to affect an already stored object's _ttl setting by updating/
reindex the object to the same index and specify, say, "_ttl = 10d"?

Cheers

Hi,

yes you can update a document to change its TTL using the update API
using ctx._ttl
have a look here
Elasticsearch Platform — Find real-time answers at scale | Elastic for more
information.

On Sun, May 6, 2012 at 5:17 PM, kodo peter.litsegaard@gmail.com wrote:

Hi!

I have a question regarding the _ttl setting. Say that I have an index
where I've specified the default time to live as "2 days". Now am I
able to affect an already stored object's _ttl setting by updating/
reindex the object to the same index and specify, say, "_ttl = 10d"?

Cheers

--
Benjamin DEVEZE

Hi!

Thanks for your reply - it was exactly the one I was looking for:)

Cheers

On May 6, 11:48 pm, Benjamin Devèze benjamin.dev...@gmail.com wrote:

Hi,

yes you can update a document to change itsTTLusing the update API
using ctx._ttl
have a look herehttp://www.elasticsearch.org/guide/reference/api/update.htmlfor more
information.

On Sun, May 6, 2012 at 5:17 PM,kodopeter.litsega...@gmail.com wrote:

Hi!

I have a question regarding the _ttl setting. Say that I have an index
where I've specified the default time to live as "2 days". Now am I
able to affect an already stored object's _ttl setting by updating/
reindex the object to the same index and specify, say, "_ttl = 10d"?

Cheers

--
Benjamin DEVEZE