Date value interpreted as double


I am indexing documents via the upsert/update function containing a Unix timestamp generated by a Python function. By default, the dynamic mapping interprets this value as a double instead of a date value. If I put a date mapping and then reindex I get a mapping exception error and my index operation fails. I have been looking through the docs and on Stackexchange and I am having a lot of difficulty with this.

(system) #2