Add a flag in QueryShardContext to differentiate inner hit query#16600
Merged
msfroh merged 1 commit intoopensearch-project:mainfrom Nov 11, 2024
Merged
Add a flag in QueryShardContext to differentiate inner hit query#16600msfroh merged 1 commit intoopensearch-project:mainfrom
msfroh merged 1 commit intoopensearch-project:mainfrom
Conversation
Contributor
|
❌ Gradle check result for 11f7980: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
…ry and an inner hit query Signed-off-by: Heemin Kim <heemin@amazon.com>
11f7980 to
7f16389
Compare
Contributor
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #16600 +/- ##
============================================
- Coverage 72.15% 72.04% -0.11%
+ Complexity 65128 65065 -63
============================================
Files 5315 5315
Lines 303573 303578 +5
Branches 43925 43925
============================================
- Hits 219036 218707 -329
- Misses 66565 66940 +375
+ Partials 17972 17931 -41 ☔ View full report in Codecov by Sentry. |
dbwiddis
pushed a commit
that referenced
this pull request
Nov 13, 2024
…ry and an inner hit query (#16600) (#16620) (cherry picked from commit c9edb48) Signed-off-by: Heemin Kim <heemin@amazon.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Signed-off-by: Michael Froh <froh@amazon.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Michael Froh <froh@amazon.com>
akolarkunnu
pushed a commit
to akolarkunnu/OpenSearch
that referenced
this pull request
Jan 21, 2025
…ry and an inner hit query (opensearch-project#16600) Signed-off-by: Heemin Kim <heemin@amazon.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Add a flag in QueryShardContext to differentiate inner hit query and normal query.
For k-NN nested fields, the query currently searches for the nested field document with the highest score for each parent document, returning only a single nested field document in the inner hit block. We want to modify this query behavior to retrieve all nested field documents in the inner hit block, rather than just the one with the highest score. To implement this, we need to identify whether the current query request is targeting an inner hit block or not.
Alternatives
NestedInnerHitContextBuilder. This will increase query latency.Related Issues
Resolves opensearch-project/k-NN#2249
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.