Different TTL Configuration for Parent/Child

For a single index with parent and child document mappings, does ES support
different TTL settings (enabled), via the Put Mapping API? In other words,
can a parent document have a different TTL setting than it's child
document? Or can only the parent document be configured with the TTL
setting?

Thanks in advance.

Tim

--
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Hello Tim,

Yes, you can put different TTLs, as parents and children are different
documents with different mappings. You can test that with something like:

But for that to work, you need to set indices.ttl.interval to something
like "1s" in your configuration and restart ES. Otherwise, _ttl will be
applied every 60s which will invalidate the test :slight_smile:

Best regards,
Radu

http://sematext.com/ -- Elasticsearch -- Solr -- Lucene

On Thu, Mar 7, 2013 at 5:52 AM, Tim Sheridan tim.sheridan@me.com wrote:

For a single index with parent and child document mappings, does ES
support different TTL settings (enabled), via the Put Mapping API? In other
words, can a parent document have a different TTL setting than it's child
document? Or can only the parent document be configured with the TTL
setting?

Thanks in advance.

Tim

--
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.