opensearch-project/OpenSearch

Support field collapsing + rescore

Open

#7484 aperta il 9 mag 2023

Vedi su GitHub
 (13 commenti) (0 reazioni) (0 assegnatari)Java (1505 fork)batch import
Search:PerformanceSearch:Relevancedecisiondiscussenhancementfeaturehelp wantedhigh hanging fruit

Metriche repository

Star
 (8123 star)
Metriche merge PR
 (Merge medio 5g 9h) (266 PR mergiate in 30 g)

Descrizione

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

Guida contributor