-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Closed
Labels
:Analytics/ES|QLAKA ESQLAKA ESQL>enhancementMetaTeam:AnalyticsMeta label for analytical engine team (ESQL/Aggs/Geo)Meta label for analytical engine team (ESQL/Aggs/Geo)
Description
This meta-issue covers the work needed to enable scoring when using running full-text queries in ES|QL.
High Level Vision: score is just a regular column, no magic
Scoring is enabled through a METADATA field, _score. For example,
FROM employees METADATA _score
| WHERE title:"test"
| SORT _score
- Scoring is explicit, opt-in ( via METADATA )
- By adding
METADATA _scorea score column is added to the table - The
_scorecolumn is “dynamic”, potentially any command could alter it - WHERE .. MATCH will affect the score (in the same as an ES query would)
- No implicit sorting on score. Sorting can be achieved through existing commands, e.g. a
| SORT _score
### Tasks
- [x] enable scoring with METADATA _score: #113120
- [ ] https://github.com/elastic/elasticsearch/issues/120082
- [x] clarify valid _score overrides
- [x] make score collector parameters configurable/inferrable
- [x] clarify scoring behavior with subqueries
- [ ] test for scoring consistency across _search and ES|QL with METADATA _score
- [x] clarify valid scenarios for _score manipulation
- [ ] refactor EsQueryExect.Sort to allow non-FieldAttribute backed Sorts (e.g., _score)
- [ ] https://github.com/elastic/elasticsearch/issues/117641
- [ ] test how scoring works with aggregation commands
- [ ] make it possible to explain scores (EXPLAIN api)
- [ ] clarify behavior when a _score field exists in a targeted index
- [ ] https://github.com/elastic/elasticsearch/issues/118460
- [ ] https://github.com/elastic/elasticsearch/issues/120940
- [ ] https://github.com/elastic/elasticsearch/pull/121793
- [ ] https://github.com/elastic/elasticsearch/pull/124540
Metadata
Metadata
Assignees
Labels
:Analytics/ES|QLAKA ESQLAKA ESQL>enhancementMetaTeam:AnalyticsMeta label for analytical engine team (ESQL/Aggs/Geo)Meta label for analytical engine team (ESQL/Aggs/Geo)