Skip to content

Conversation

@ioanatia
Copy link
Contributor

@ioanatia ioanatia commented Oct 22, 2025

This enables the score function in release builds.
The score function can be used to retrieve the score of individual queries, which is helpful for applying custom scoring formulas or for debugging / score explainability.

Co-authored-by: Tommaso Teofili <tommaso.teofili@elastic.co>
@ioanatia ioanatia added >feature ES|QL-ui Impacts ES|QL UI Team:Search - Relevance The Search organization Search Relevance team :Search Relevance/ES|QL Search functionality in ES|QL v9.3.0 labels Oct 22, 2025
@elasticsearchmachine
Copy link
Collaborator

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

@github-actions
Copy link
Contributor

github-actions bot commented Oct 22, 2025

🔍 Preview links for changed docs

@github-actions
Copy link
Contributor

ℹ️ Important: Docs version tagging

👋 Thanks for updating the docs! Just a friendly reminder that our docs are now cumulative. This means all 9.x versions are documented on the same page and published off of the main branch, instead of creating separate pages for each minor version.

We use applies_to tags to mark version-specific features and changes.

Expand for a quick overview

When to use applies_to tags:

✅ At the page level to indicate which products/deployments the content applies to (mandatory)
✅ When features change state (e.g. preview, ga) in a specific version
✅ When availability differs across deployments and environments

What NOT to do:

❌ Don't remove or replace information that applies to an older version
❌ Don't add new information that applies to a specific version without an applies_to tag
❌ Don't forget that applies_to tags can be used at the page, section, and inline level

🤔 Need help?

@ioanatia ioanatia marked this pull request as ready for review October 27, 2025 18:46
@elasticsearchmachine elasticsearchmachine added Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch and removed Team:Search - Relevance The Search organization Search Relevance team labels Oct 27, 2025
@elasticsearchmachine
Copy link
Collaborator

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

@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/kibana-esql (ES|QL-ui)

@ioanatia
Copy link
Contributor Author

@stratoula enabling the score function means that we also change the validation rules for the search functions like match.

these can now be used in EVALs, as arguments of the score function, e.g.:

FROM books
| EVAL my_score = score(match(title, "Rings") and ratings > 4.6)

@stratoula
Copy link

@ioanatia here is our PR elastic/kibana#240933. Let me know when to merge

Copy link
Member

@carlosdelest carlosdelest left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we need to update rest-api-spec/test/esql/60_usage.yml as well to ensure we're tracking telemetry? 🤔

Copy link
Contributor

@tteofili tteofili left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @ioanatia

@ioanatia ioanatia added the test-release Trigger CI checks against release build label Oct 28, 2025
@ioanatia ioanatia removed the test-release Trigger CI checks against release build label Oct 28, 2025
@ioanatia
Copy link
Contributor Author

Don't we need to update rest-api-spec/test/esql/60_usage.yml as well to ensure we're tracking telemetry? 🤔

It's better to be sure so I have run the release tests and they pass - so I think it's not needed.

@ioanatia ioanatia merged commit 48f38e5 into elastic:main Oct 28, 2025
34 checks passed
@ioanatia ioanatia deleted the score_out_of_snapshot branch October 28, 2025 14:27
stratoula added a commit to elastic/kibana that referenced this pull request Oct 28, 2025
## Summary

Updated the locations to support full text search functions in eval

<img width="933" height="228" alt="image"
src="https://github.com/user-attachments/assets/0810221c-1006-489e-908d-57a8d3e49344"
/>


With this PR elastic/elasticsearch#136988 we
will be able to have MATCH, KQL etc in EVAL.
qn895 pushed a commit to qn895/kibana that referenced this pull request Oct 30, 2025
## Summary

Updated the locations to support full text search functions in eval

<img width="933" height="228" alt="image"
src="https://github.com/user-attachments/assets/0810221c-1006-489e-908d-57a8d3e49344"
/>


With this PR elastic/elasticsearch#136988 we
will be able to have MATCH, KQL etc in EVAL.
ana-davydova pushed a commit to ana-davydova/kibana that referenced this pull request Nov 3, 2025
## Summary

Updated the locations to support full text search functions in eval

<img width="933" height="228" alt="image"
src="https://github.com/user-attachments/assets/0810221c-1006-489e-908d-57a8d3e49344"
/>


With this PR elastic/elasticsearch#136988 we
will be able to have MATCH, KQL etc in EVAL.
albertoblaz pushed a commit to albertoblaz/kibana that referenced this pull request Nov 4, 2025
## Summary

Updated the locations to support full text search functions in eval

<img width="933" height="228" alt="image"
src="https://github.com/user-attachments/assets/0810221c-1006-489e-908d-57a8d3e49344"
/>


With this PR elastic/elasticsearch#136988 we
will be able to have MATCH, KQL etc in EVAL.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ES|QL-ui Impacts ES|QL UI >feature :Search Relevance/ES|QL Search functionality in ES|QL Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants