Elasticsearch : Return the value of a field in the latest document created each day for the last one month

I have a collection with documents updating everyday. Can someone provide me some suggestion for returning the value of a field in the latest document for each day for the last one month my document is like the one bellow :

{ "_index": "myIndex", "_type": "myIndex", "_id": "sh0i73EBGnoH6tYs24jh", "_score": 1, "_source": {
"date": "2020-01-24T23:29:58+01:00", "myField": "4" } }

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.