I have added a sort
conditions field to my ElasticSearch query. I'm using ES 7.14 / Kibana 7.10, with a "fallback" to the document's score. According to the docs I have to use the reserved key _score
:
My sort
array field look like
[
{ "update_date": { "order": "desc", "missing" : "_last", "unmapped_type" : "long" } },
{ "release_date": { "order": "desc", "missing" : "_last", "unmapped_type" : "long" } },
"_score"
]
This works ok, but I get a null
value for score
when not using the _score
special field. Why? Is the score
not calculated when using the sort
conditions at all?