Skip to content

Support field collapsing + rescoreΒ #7484

Open
@wli-chwy

Description

Is your feature request related to a problem? Please describe.
OpenSearch will error "cannot usecollapse in conjunction with rescore", if I have both collapse and rescore clause in the query. In ecommerce space, my existing query rely on collapse (collapse on the same parent ID) to deduplicate the same variations of a product. Because of the limitation, I cannot use learn to rank plugin which need rescore to re-rank to improve my search relevancy.

Describe the solution you'd like
No error issues when using collapse in conjunction with rescore. And rescore should happen first to ensure the correct ranking of the face out item.

Describe alternatives you've considered
N/A

Additional context
The same request in Elastic Search elastic/elasticsearch#27243

Metadata

Assignees

No one assigned

    Labels

    Search:PerformanceSearch:RelevancedecisionIssues requiring a decisiondiscussIssues intended to help drive brainstorming and decision makingenhancementEnhancement or improvement to existing feature or requestfeatureNew feature or requesthelp wantedExtra attention is neededhigh hanging fruit

    Type

    No type

    Projects

    • Status

      πŸ— In progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions