Skip to content
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
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

martin-gaievski
Copy link
Member

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

  • Functionality includes testing.
  • API changes companion pull request created, if applicable.
  • Public documentation issue/PR created, if applicable.

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.

Copy link
Contributor

✅ Gradle check result for 484d820: SUCCESS

Copy link

codecov bot commented Nov 15, 2024

Codecov Report

Attention: Patch coverage is 83.33333% with 3 lines in your changes missing coverage. Please review.

Project coverage is 72.04%. Comparing base (3b9ca63) to head (7f20f72).
Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
...opensearch/search/query/QueryCollectorContext.java 83.33% 3 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

@owaiskazi19
Copy link
Member

owaiskazi19 commented Nov 15, 2024

@reta can you also take a look since you reviewed the original PR: #13481?

Signed-off-by: Martin Gaievski <[email protected]>
Copy link
Contributor

✅ Gradle check result for 7f20f72: SUCCESS

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Enhancement Request] Extend search by allowing to choose the score mode for empty query collector
2 participants