-
Notifications
You must be signed in to change notification settings - Fork 66
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
Adding aggregations in hybrid query #630
Adding aggregations in hybrid query #630
Conversation
57491e1
to
235761d
Compare
@@ -8,19 +8,17 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | |||
### Enhancements | |||
### Bug Fixes | |||
- Fix async actions are left in neural_sparse query ([#438](https://github.com/opensearch-project/neural-search/pull/438)) | |||
- Fixed exception for case when Hybrid query being wrapped into bool query ([#490](https://github.com/opensearch-project/neural-search/pull/490)) | |||
- Hybrid query and nested type fields ([#498](https://github.com/opensearch-project/neural-search/pull/498)) |
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.
those PRs were released in 2.12, doing cleanup
- Fix typo for sparse encoding processor factory([#578](https://github.com/opensearch-project/neural-search/pull/578)) | ||
- Add non-null check for queryBuilder in NeuralQueryEnricherProcessor ([#615](https://github.com/opensearch-project/neural-search/pull/615)) | ||
### Infrastructure | ||
### Documentation | ||
### Maintenance | ||
- Added support for jdk-21 ([#500](https://github.com/opensearch-project/neural-search/pull/500))) |
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.
same as 2 lines above, this is part of 2.12
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #630 +/- ##
============================================
- Coverage 82.70% 82.57% -0.13%
- Complexity 650 656 +6
============================================
Files 51 52 +1
Lines 2053 2055 +2
Branches 329 328 -1
============================================
- Hits 1698 1697 -1
Misses 212 212
- Partials 143 146 +3 ☔ View full report in Codecov by Sentry. |
fe4dfae
to
09852a1
Compare
@@ -63,7 +63,7 @@ public void testCombination_whenMultipleSubqueriesResultsAndDefaultMethod_thenSc | |||
assertNotNull(queryTopDocs); | |||
assertEquals(3, queryTopDocs.size()); | |||
|
|||
assertEquals(3, queryTopDocs.get(0).getScoreDocs().size()); | |||
assertEquals(5, queryTopDocs.get(0).getScoreDocs().size()); |
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 is needed because of the change in a way we count total hits
09852a1
to
801e58e
Compare
Signed-off-by: Martin Gaievski <[email protected]>
801e58e
to
0622927
Compare
src/main/java/org/opensearch/neuralsearch/processor/combination/ScoreCombiner.java
Show resolved
Hide resolved
src/test/java/org/opensearch/neuralsearch/query/HybridQueryIT.java
Outdated
Show resolved
Hide resolved
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.
Minor comments. Overall code looks good to me.
Signed-off-by: Martin Gaievski <[email protected]>
f04c058
into
opensearch-project:main
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-2.x 2.x
# Navigate to the new working tree
cd .worktrees/backport-2.x
# Create a new branch
git switch --create backport/backport-630-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 f04c058fc5ab193342c583cf820cd6cb72be42ea
# Push it to GitHub
git push --set-upstream origin backport/backport-630-to-2.x
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-2.x Then, create a pull request where the |
LGTM- |
* Adding aggregations in hybrid query Signed-off-by: Martin Gaievski <[email protected]> (cherry picked from commit f04c058)
* Adding aggregations in hybrid query Signed-off-by: Martin Gaievski <[email protected]> (cherry picked from commit f04c058)
Description
Adding aggregations to hybrid query.
Implementation is based on design RFC . Big chunk of implementation is done under #624, in this PR we mainly:
Issues Resolved
#509
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.