I want to get the latest record added to ElasticSearch.
If I use a query like this:
{
"query": {
"match_all": {}
},
"size": 1,
"sort": [
{
"_timestamp": {
"order": "desc"
}
}
]
}
Would ElasticSearch score all the documents based on relevance? I mean do I need to explicitly tell ElasticSearch that "Do not analyze/score" match_all query to improve the performance?