Store Date Format in elasticsearch Store Date Format in elasticsearch elasticsearch elasticsearch

Store Date Format in elasticsearch


You are nearly there. Set your mapping like this:

{"LastUpdate": {    "type" : "date",    "format" : "yyyy/MM/dd HH:mm:ss"}}

Read the docs on the date mapping and its options and the date format parameter (one of the options to the date mapping).

Good luck!