{"query":{"bool": {"must": {"match": {"query": ["java"] }}}}},
"sort": {"_timestamp" : "desc"}}
executing above query I am getting max_score and _score is NULL like this
"max_score": null
The reason is because you use custom sorting. Since you need to sort by timestamp, elasticsearch will omit the scoring.
Check https://www.elastic.co/guide/en/elasticsearch/guide/current/_sorting.html for more.
If you want the _score to be calculated regardless, you can set the track_scores parameter to true.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With