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?
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
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?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.