Hello,
I am migrating my 2.x indices to 6.x (to time based indices). My 2.x index has _ttl on them and no created timestamp, for me to migrate the index to 6.x cluster, I need to know the timestamp when the document is created, so i can place them in proper index in 6.x cluster, but unfortunately I am not able to fetch the _ttl field on the document (as mentioned by some people).
I'm not sure why it won't work through fields, but the ttl field was stored by default in 2.x, so you could try a script field, and access it with _fields['_ttl'].
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.