-
Notifications
You must be signed in to change notification settings - Fork 73
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 inner hits support to hybrid query #776
Add inner hits support to hybrid query #776
Conversation
Signed-off-by: Martin Gaievski <[email protected]>
b5ef151
to
f4804af
Compare
Signed-off-by: Martin Gaievski <[email protected]>
f4804af
to
7889caa
Compare
@martin-gaievski do we have a path forward for resolving this technical challenge? Have we started the discussion around this with Core team. Also, I would like to take a step back here and question what is the meaning of normalized score for inner hits? |
@martin-gaievski is this feature scoped for 2.15? |
There is no hard requirement for the version |
src/test/java/org/opensearch/neuralsearch/query/HybridQueryBuilderTests.java
Show resolved
Hide resolved
src/test/java/org/opensearch/neuralsearch/query/HybridQueryIT.java
Outdated
Show resolved
Hide resolved
For now no path clear forward, I'll be working on summarizing technical hurdles we do have. Short list is:
|
Signed-off-by: Martin Gaievski <[email protected]>
e475041
to
895ae31
Compare
Closing for now as this needs some additional investigation |
Description
Adding support for inner hits to hybrid query. This is a feature of OpenSearch that is available for other queries but was not supported by hybrid query.
Inner hits will be tracked similarly to how they are tracked for all other queries. They will contain details of inner hits for cases of nested fields and parent/child relationships between documents. The only catch is the score of the inner hit—such scores will be before normalization. Having a normalized score is technically difficult because inner hits processing is done in the Fetch phase, which occurs after the normalization processor has finished its work.
Following are example of response that contains such inner hits section for nested and parent/child queries:
Issues Resolved
#718
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.