opensearch-project/OpenSearch

Support field collapsing + rescore

开放

#7,484 创建于 2023年5月9日

 (13 条评论) (0 个反应) (0 位负责人)Java (1,505 个派生)batch import
Search:PerformanceSearch:Relevancedecisiondiscussenhancementfeaturehelp wantedhigh hanging fruit

仓库指标

星标
 (8,123 个星标)
PR 合并指标
 (平均合并 5天 9小时) (30 天内合并 266 个 PR)

描述

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 https://github.com/elastic/elasticsearch/issues/27243

贡献者指南