-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Add method to create empty query collector context with customizable score mode #16660
Open
martin-gaievski
wants to merge
2
commits into
opensearch-project:main
Choose a base branch
from
martin-gaievski:add_empty_top_scores_collector
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add method to create empty query collector context with customizable score mode #16660
martin-gaievski
wants to merge
2
commits into
opensearch-project:main
from
martin-gaievski:add_empty_top_scores_collector
Conversation
This file contains 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
martin-gaievski
requested review from
anasalkouz,
andrross,
ashking94,
Bukhtawar,
CEHENKLE,
dblock,
dbwiddis,
gbbafna,
jed326,
kotwanikunal,
mch2,
msfroh,
nknize,
owaiskazi19,
reta,
Rishikesh1159,
sachinpkale,
saratvemulapalli,
shwetathareja,
sohami and
VachaShah
as code owners
November 15, 2024 21:05
github-actions
bot
added
enhancement
Enhancement or improvement to existing feature or request
Search
Search query, autocomplete ...etc
labels
Nov 15, 2024
martin-gaievski
force-pushed
the
add_empty_top_scores_collector
branch
from
November 15, 2024 21:07
54c8785
to
30dd1ab
Compare
…score mode Signed-off-by: Martin Gaievski <[email protected]>
martin-gaievski
force-pushed
the
add_empty_top_scores_collector
branch
from
November 15, 2024 21:09
30dd1ab
to
484d820
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #16660 +/- ##
============================================
+ Coverage 71.99% 72.04% +0.04%
+ Complexity 65153 65138 -15
============================================
Files 5318 5318
Lines 303903 303913 +10
Branches 43970 43970
============================================
+ Hits 218804 218960 +156
+ Misses 67138 66976 -162
- Partials 17961 17977 +16 ☔ View full report in Codecov by Sentry. |
owaiskazi19
reviewed
Nov 15, 2024
server/src/main/java/org/opensearch/search/query/QueryCollectorContext.java
Show resolved
Hide resolved
Signed-off-by: Martin Gaievski <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
enhancement
Enhancement or improvement to existing feature or request
Search
Search query, autocomplete ...etc
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.
Description
This PR introduces a new method that allows clients to create an empty query collector context with a specified score mode. This enhancement addresses limitations in the current MultiCollector implementation where score modes can default to suboptimal values.
Related Issues
Resolves #16659
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.