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.
The document, ID 1, is like this:
{
'@timestamp': '2019-09-12T10:00:00',
'created_time': '2019-09-12T10:00:00',
'updated_time': '2019-09-12T10:00:00',
'fname': 'joe',
'lname': 'smyth'
}
The update doc, also ID 1, looks like:
{
'@timestamp': '2019-09-12T10:00:00',
'created_time': '2019-09-12T10:00:00',
'updated_time': '2019-09-12T11:30:00',
'fname': 'joe',
'lname': 'smyth'
}
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).
What gives? Are dates NON-updateable?