ES|QL SCORE function
query-
Boolean expression that contains full text function(s) to be scored.
Scores an expression. Only full text functions will be scored. Returns scores for all the resulting docs.
| query | result |
|---|---|
| boolean | double |
FROM books METADATA _score
| WHERE match(title, "Return") AND match(author, "Tolkien")
| EVAL first_score = score(match(title, "Return"))