@Binh, enable ttl first in mapping and then use it in REST or client, it make sense. Thank you again!
On Saturday, February 22, 2014 1:02:27 AM UTC+8, Binh Ly wrote: > > That is correct, the _ttl field is disabled by default: > > > http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-ttl-field.html > > To use TTL, you need to enable it first in the mapping and then after that > you can index documents with a TTL value and it will work as expected. > -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/49d43974-4b9b-489d-b863-7ff4d9495746%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
