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
Ability to use rescore
with Inner hits
#108163
Comments
Pinging @elastic/es-search (Team:Search) |
My preference goes to option A. Rescorers can be cascaded so a single |
@jimczi I agree, option A is my preferred one as well.
I think using it in |
Description
For nested queries, and more recently, collapse, its possible to have a top-level rescore that applies to the top-level documents.
However, the inner-hit scores may not reflect the top-level rescore.
It would be beneficial to add
rescore
toinner_hits
so that individual inner hits can be rescored to reflect their top-level score.The question becomes an API level one.
A: Do we want to simply add a
rescore
element that is a fully-feature rescore, just like the rescore field in _searcu?B: Or do we add an option for
inner_hits
to take advantage of the already existing top-level rescore, but allow them to set override options likewindow_size
?@jimczi what do you think?
The text was updated successfully, but these errors were encountered: