-
Notifications
You must be signed in to change notification settings - Fork 25.6k
ESQL - Add scoring for full text functions disjunctions using ExpressionEvaluator #121322
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
Closed
carlosdelest
wants to merge
15
commits into
elastic:main
from
carlosdelest:enhancement/esql-scoring-evaluator-full-text-functions-disjunctions
Closed
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
edb117a
Add score to EvalOperator and LuceneQueryExpressionEvaluator
carlosdelest adb7e3e
Implement usesScoring and solve scoring in binary logic
carlosdelest 64d081c
Make first tests pass
carlosdelest 3764cec
Implement Not and fix boolean logic
carlosdelest 8ec59b7
Fix scores in tests
carlosdelest c3a3c56
Update docs/changelog/121322.yaml
carlosdelest 7fd7611
[CI] Auto commit changes from spotless
a7b8169
Fix scores in tests
carlosdelest 4f291ad
Add 0.0f boosts to all non-full text functions queries
carlosdelest 0a3043b
Improve handling of scores in boolean operations
carlosdelest db3b440
Merge remote-tracking branch 'carlosdelest/enhancement/esql-scoring-e…
carlosdelest 706f59b
Simplify and fix scoring issues - scoring does not matter when an exp…
carlosdelest b740da3
Revert "Add 0.0f boosts to all non-full text functions queries"
carlosdelest ec0dc4e
Fix some problems with NOT
carlosdelest 7879a03
Make test functions add to existing score again
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| pr: 121322 | ||
| summary: "[PoC 2] ESQL - Add scoring for full text functions disjunctions using `ExpressionEvaluator`" | ||
| area: ES|QL | ||
| type: enhancement | ||
| issues: [] |
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
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.
I wonder why
appendMatch()throwsIOException, butappendNoMatch()doesn't?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.
Looks weird, right?
appendMatch()reads the score from theScorable, which can result in anIOException.appendNoMatch()does not need to read the scoring.