I want the filter to be set on dashboard which will fetch only latest record
So Used below query in DSL
{
"query": {
"match_all": {}
},
"size": 1,
"sort": [
{
"_id": {
"order": "desc"
}
}
]
}
This is not working in Elasticsearch Kibana 7
"size" : 1 not working