-
Notifications
You must be signed in to change notification settings - Fork 25.3k
ES|QL - Add scoring for full text functions disjunctions #121793
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
Merged
carlosdelest
merged 34 commits into
elastic:main
from
carlosdelest:enhancement/esql-score-disjunctions-scoreing-operator
Mar 11, 2025
Merged
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
978770d
LuceneQueryScoreEvaluator first implementation
carlosdelest cb2c3c4
Add ScoreOperator and ScoreMapper
carlosdelest 9ca756a
Add a ExpressionScoreMapper and a ScoreMapper interface to retrieve s…
carlosdelest e4eb86d
Implement ExpressionScoreMapper for FullTextFunction and BinaryLogic
carlosdelest a437da3
Create a ScoreOperator that can be planned via the LocalExecutionPlan…
carlosdelest aa4ffbf
Fix EvalMapper
carlosdelest 1044bfd
Add tests
carlosdelest 5abed67
Spotless
carlosdelest 8b7fd0a
Update docs/changelog/121793.yaml
carlosdelest 72bbd5f
Fix tests
carlosdelest 1bfa58f
Merge remote-tracking branch 'origin/main' into enhancement/esql-scor…
carlosdelest 5cb0bfc
Add testing and capabilities
carlosdelest 3cab2dc
Remove disjunction limitations from docs
carlosdelest c639ec6
Calculate the _score attr position instead of hardcoding it
carlosdelest 3f3b5b7
Refactor LuceneQueryExpressionEvaluator into a superclass and subclas…
carlosdelest 145955c
Fix tests
carlosdelest 63ca98b
Refactor query evaluators to use subclasses instead of interfaces
carlosdelest 0008559
Merge remote-tracking branch 'carlosdelest/enhancement/esql-score-dis…
carlosdelest ef3decc
[CI] Auto commit changes from spotless
6755ab2
Refactor tests
carlosdelest b2de161
Refactor tests
carlosdelest bd88335
Refactor tests
carlosdelest ab8bcf1
Spotless
carlosdelest 0fb9dc7
Merge remote-tracking branch 'origin/main' into enhancement/esql-scor…
carlosdelest 3b994f6
Merge remote-tracking branch 'carlosdelest/enhancement/esql-score-dis…
carlosdelest 9f39ad3
Add javadoc
carlosdelest 0de1df5
Added missing tests
carlosdelest 33016a9
Merge remote-tracking branch 'origin/main' into enhancement/esql-scor…
carlosdelest c355bcc
Fix changelog
carlosdelest 7457544
Fix test
carlosdelest e4758d3
Remove unnecessary method
carlosdelest e3e068c
Add missing capabilities to tests
carlosdelest 5859c81
Merge remote-tracking branch 'origin/main' into enhancement/esql-scor…
carlosdelest 0447824
Merge remote-tracking branch 'origin/main' into enhancement/esql-scor…
carlosdelest File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Refactor query evaluators to use subclasses instead of interfaces
- Loading branch information
commit 63ca98bf0fc224ee69bf813e8262f8844f83b90e
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Now the ExpressionEvaluator just overrides the methods needed from the superclass |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This class is extracted from the previous
LuceneQueryExpressionEvaluator
, and it contains the base mechanism for executing Lucene queries over Pages.Subclasses can implement methods to decide what the Block will look like, and how to add results to it based on matching / non matching results.