This is my mapping:
"modified" : {
"type" : "date",
"store" : true,
"format" : "yyyyMMddHHmmss"
},
"modified_sortable" : {
"type" : "long",
"store" : true
},
"mybookName_en_US" : {
"type" : "text",
"store" : true,
"term_vector" : "with_positions_offsets",
"analyzer" : "english"
},
"name" : {
"type" : "text",
"store" : true
},
This is my documents in elastic search:
{"uid":"20100_spellCheckWord_fWUSdV4flcavJZzNWOj4Ew==","companyId":"20100","groupId":"0","spellCheckWord_en_US":"smith","languageId":"en_US","priority":"0.0","type":"spellChecker"}},{"_index":"liferay-20100","_type":"LiferayDocumentType","_id":"com.liferay.docs.guestbook.model.Entry_PORTLET_80202","_score":6.8558645,"_source":{"entryClassPK":"80202","publishDate_sortable":0,"groupId":"20127","priority_sortable":0.0,"publishDate":"19700101053000","guestbookName_en_US":"Main","createDate_sortable":1563190379336,"uid":"com.liferay.docs.guestbook.model.Entry_PORTLET_80202","groupRoleId":"20127-20115","scopeGroupId":"20127","modified":"20190715170259","modified_sortable":1563190379420,"expirationDate_sortable":9223372036854775807,"email":"smith@gmail.com","createDate":"20190715170259","expirationDate":"99950812133000","content_en_US":"H}
In the above document date field is stored as a Timestamp format (19700101053000) . but I need to store date format as (MM/DD/YYYY) instead of Timestamp.
Please give a suggestion for my requirement.
Thanks
Lokesh