-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Allow rescorer with field collapsing #107779
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
Conversation
This change adds the support for rescoring collapsed documents. The rescoring is applied on the top document per group on each shard. Closes elastic#27243
Documentation preview: |
Pinging @elastic/es-search (Team:Search) |
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.
Very exciting!
server/src/main/java/org/elasticsearch/search/rescore/RescorePhase.java
Outdated
Show resolved
Hide resolved
rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search/110_field_collapsing.yml
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.
Fantastic.
Do we think we could also add rescore support for inner hits in the future?
I realize inner-hits are optional for collapse, so we can discuss this later. But it would be good to provide rescoring for inner hits so that their scores & order reflect their collapsed fields. This may require an API change for the inner-hits configuration to accept a "rescore" parameter or something. I honestly don't know.
That's a good question. Adding the rescoring for |
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.
LGTM - thanks for taking care of this!
docs/reference/search/search-your-data/collapse-search-results.asciidoc
Outdated
Show resolved
Hide resolved
….asciidoc Co-authored-by: Kathleen DeRusso <[email protected]>
This change adds the support for rescoring collapsed documents.
The rescoring is applied on the top document per group on each shard.
Closes #27243