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.
Tip
Learn more about using ES|QL for search use cases.
| query | result |
|---|---|
| boolean | double |
FROM books METADATA _score
| WHERE match(title, "Return") AND match(author, "Tolkien")
| EVAL first_score = score(match(title, "Return"))