Mention scoring characteristics (#78965)

This commit is contained in:
Andrei Stefan 2021-10-12 12:11:57 +03:00 committed by GitHub
parent feaf4983de
commit 47852146c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,6 +8,11 @@ when the `MATCH` or `QUERY` predicates are being used.
Outside a, so-called, search context, these functions will return default values
such as `0` or `NULL`.
{es-sql} optimizes all queries executed against {es} depending on the scoring needs.
Using <<_track_scores,`track_scores`>> on the search request or <<sort-search-results,`_doc` sorting>> that
disables scores calculation, {es-sql} instructs {es} not to compute scores when these are not needed.
For example, every time a `SCORE()` function is encountered in the SQL query, the scores are computed.
[[sql-functions-search-match]]
==== `MATCH`