elastic / elasticsearch

Free and Open Source, Distributed, RESTful Search Engine
https://www.elastic.co/products/elasticsearch
Other
1.37k stars 24.87k forks source link

Scoring support in ES|QL #116599

Open tteofili opened 1 week ago

tteofili commented 1 week ago

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
### Tasks
- [ ] enable scoring with METADATA _score: #113120
- [ ] retain the scores of a single full text operation with multiple full text functions/operators
- [ ] clarify valid _score overrides
- [ ] make score collector parameters configurable/inferrable
- [ ] clarify scoring behavior with subqueries
- [ ] test for scoring consistency across _search and ES|QL with METADATA _score
elasticsearchmachine commented 1 week ago

Pinging @elastic/es-search (Team:Search)

elasticsearchmachine commented 1 week ago

Pinging @elastic/es-analytical-engine (Team:Analytics)