Allow rescorer with field collapsing#107779
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) |
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
benwtrent
left a comment
There was a problem hiding this comment.
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 |
kderusso
left a comment
There was a problem hiding this comment.
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 <kathleen.derusso@elastic.co>
This change adds the support for rescoring collapsed documents.
The rescoring is applied on the top document per group on each shard.
Closes #27243