How to store date in S.d.f(08/20/2019) instead of timestamp in elasticsearcHow to store date in S.d.f(08/20/2019) instead of timestamp in elasticsearchttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1142943482024-03-29T01:05:44Z2024-03-29T01:05:44ZRE: How to store date in S.d.f(08/20/2019) instead of timestamp in elasticsJorge Diazhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1143738312019-07-20T13:41:32Z2019-07-20T13:41:32ZHi Lokesh gorrela,<br />In my opinion, it is better to store all date information as timestamp in Elasticsearch, as you will be able to do operations like sorting or search by date intervals.<br />If you want to index it with other format, it is better to create a different field, as David said, for example "modified_mmddyyy" and store/retrieve that field instead.<br />Nevertheless: Why do you want to store dates with that non-timestamp format? If you want to retrieve it from the index and display it somewhere, it is better to convert the date before displaying it.<br /><br />Regards,<br />JorgeJorge Diaz2019-07-20T13:41:32ZRE: How to store date in S.d.f(08/20/2019) instead of timestamp in elasticsDavid H Nebingerhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1143520072019-07-18T13:17:16Z2019-07-18T13:17:16ZThat was not my suggestion at all. I never said the index should be modified to use a different format.<br /><br />What I said was that the index field should be text and your custom IndexPostProcessor would itself do the formatting in the way you wanted and set the text field that way.David H Nebinger2019-07-18T13:17:16ZRE: How to store date in S.d.f(08/20/2019) instead of timestamp in elasticslokesh gorrelahttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1143494692019-07-18T06:55:49Z2019-07-18T06:55:49ZHi David<br />Thanks for your reply.<br />I followed your suggestion and tested the functionality but it stored data in <strong>20190420442288 (yyyyMMddHHmmss)</strong> only. But i need to store data in <strong>04/20/2019</strong> format. See below mapping of date field in index.<br />In my Index date field mapping like this below<br />"modified" : {<br />"type" : "date",<br />"store" : true,<br />"format" : "yyyyMMddHHmmss"<br />},<br /><br />I need to update the above date field format in mapping like this below<br />"modified" : {<br />"type" : "date",<br />"store" : true,<br />"format" : "MM/dd/yyyy"<br />},<br /><br />Please give any suggestion for this requirement.<br /><br />Thanks<br />Lokeshlokesh gorrela2019-07-18T06:55:49ZRE: How to store date in S.d.f(08/20/2019) instead of timestamp in elasticsDavid H Nebingerhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1142989222019-07-15T15:06:52Z2019-07-15T15:06:52ZSure, just store as text in the doc and format it as you like in your custom indexing code.David H Nebinger2019-07-15T15:06:52ZHow to store date in S.d.f(08/20/2019) instead of timestamp in elasticsearclokesh gorrelahttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1142943472019-07-15T06:31:11Z2019-07-15T06:31:11ZHi All<br />I created <strong>custom entity using elasticsearch module in liferay 7.1.</strong> In my table in database , date column having <strong>2018-07-09 00:00:00 format </strong>date, but while indexing that date, It is stored as timestamp in