Skip to content

ESQL - enabling scoring with METADATA _score#113120

Merged
tteofili merged 167 commits intoelastic:mainfrom
tteofili:esql_metadata_score
Nov 28, 2024
Merged

ESQL - enabling scoring with METADATA _score#113120
tteofili merged 167 commits intoelastic:mainfrom
tteofili:esql_metadata_score

Conversation

@tteofili
Copy link
Copy Markdown
Contributor

@tteofili tteofili commented Sep 18, 2024

This PR adds the _score column to the ES|QL query results, when METADATA _score is specified.

e.g.

FROM logs METADATA _score | WHERE content:"foo"

Adding the METADATA _score directive has no effect on sort order. If sorting by relevance is required, an explicit | SORT _score DESC can be added.

@tteofili tteofili marked this pull request as ready for review September 20, 2024 09:45
@tteofili tteofili requested a review from a team as a code owner September 20, 2024 09:45
@elasticsearchmachine elasticsearchmachine added the needs:triage Requires assignment of a team area label label Sep 20, 2024
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Hi @tteofili, I've created a changelog YAML for you.

@elasticsearchmachine elasticsearchmachine added Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) and removed needs:triage Requires assignment of a team area label labels Sep 20, 2024
@tteofili tteofili merged commit 146cb39 into elastic:main Nov 28, 2024
alexey-ivanov-es pushed a commit to alexey-ivanov-es/elasticsearch that referenced this pull request Nov 28, 2024
* ESQL - enabling scoring with METADATA _score
Co-authored-by: ChrisHegarty <chegar999@gmail.com>
tteofili added a commit to tteofili/elasticsearch that referenced this pull request Nov 29, 2024
* ESQL - enabling scoring with METADATA _score
Co-authored-by: ChrisHegarty <chegar999@gmail.com>
tteofili added a commit that referenced this pull request Nov 29, 2024
* ESQL - enabling scoring with METADATA _score (#113120)
* ESQL - enabling scoring with METADATA _score
Co-authored-by: ChrisHegarty <chegar999@gmail.com>

* Update docs/changelog/117747.yaml

* minor fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/ES|QL AKA ESQL >enhancement Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v9.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants