-
Notifications
You must be signed in to change notification settings - Fork 25.5k
retain the scores of portions of an ES|QL query, via a score function #127551
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
… into esql_namedqueries
… into esql_namedqueries
… into esql_namedqueries
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to add the files that are generated for docs, even if the function is under snapshot.
See #127322 where knn is under snapshot but we still include all the doc files.
...rc/main/java/org/elasticsearch/xpack/esql/expression/function/fulltext/FullTextFunction.java
Outdated
Show resolved
Hide resolved
x-pack/plugin/esql/qa/testFixtures/src/main/resources/score-function.csv-spec
Show resolved
Hide resolved
...ugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/fulltext/Score.java
Show resolved
Hide resolved
… into esql_namedqueries
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost there!
We're missing the AbstractFunctionTestCase
as was mentioned - one question about usage in WHERE
.
...rc/main/java/org/elasticsearch/xpack/esql/expression/function/fulltext/FullTextFunction.java
Show resolved
Hide resolved
🔍 Preview links for changed docs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
This is behind snapshot so we can iterate on this if needed for lifting restrictions etc.
...ugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/fulltext/Score.java
Outdated
Show resolved
Hide resolved
…expression/function/fulltext/Score.java Co-authored-by: Carlos Delgado <[email protected]>
this is a first attempt to retain the score of single portions of an ES|QL query.
this one does it via a
score
function.this should work with all (boolean combinations of) full text functions
fixes #120082