We do a lot of updating of the same documents and would be absolutely awesome to have a way for us to tell when the document was originally created. Our processing scripts push data to elasticsearch whenever new changes have been detected, however, we don't ever know in the processing scripts if the document had been previously pushed to Elasticsearch.
Having this datetime field automatically created and populate value just on the initial document create would allow us to generate many types of Date Histogram - driven reports.
Has anyone ever successfully been able to get this implemented in elasticsearch?
No, this is for mapping _timestamp to a document field value, it doesn't allow to set something like a current time as the default value if this value is not yet set in the document.
Nik, you probably missed that we cant specify different fields on product create and update. We push same data every time there's a change in the data. We always you full document index and always push ID together with it so it overwrites existing document's data and increments the version
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.