I have a document that I am trying to update and it contains a date. If the source gets updated (in a RDBMS) then I am trying to update the document in elasticsearch.
If I do an insert (PUT /index/1) and replace the entire document, the version is incremented BUT the update_time field is NOT changed.
If I do an update (POST /index/_update/1) then nothing is updated (result is noop).
Just a follow-up note on this, I did some more testing and found that if I change lname to smith and also change updated_time then, as expected lname is properly updated. However, updated_time is still NOT updated. Both methods (index and update) result in the update of lname but NOT updated_time.
can you please share a fully reproducible example including index creation, document indexing and updating along with the elasticsearch version you are using? Thank you!
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.