Skip to content
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

Add an additional tiebreaker to RRF #101847

Merged
merged 7 commits into from Nov 7, 2023
Merged

Add an additional tiebreaker to RRF #101847

merged 7 commits into from Nov 7, 2023

Conversation

jdconrad
Copy link
Contributor

@jdconrad jdconrad commented Nov 6, 2023

This change adds an additional tiebreaker for RRF where when two documents have the same RRF "score" such as identical ranks of (3,4) and (4,3) or (1,-) and (-,1), etc. the ordering will fallback to the highest score from query 1 then query 2, and so on. If all scores are equal then the tiebreaker will be shard index followed by doc id, but these are not necessarily stable. This should resolve most of the stability issues outlined as part of (#101232).

Closes #101232

@jdconrad jdconrad added >bug :Search/Ranking Scoring, rescoring, rank evaluation. v8.12.0 labels Nov 6, 2023
@elasticsearchmachine elasticsearchmachine added the Team:Search Meta label for search team label Nov 6, 2023
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search (Team:Search)

@elasticsearchmachine
Copy link
Collaborator

Hi @jdconrad, I've created a changelog YAML for you.

Copy link
Contributor

@mayya-sharipova mayya-sharipova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jdconrad Thanks Jack for fixing this.

@jdconrad jdconrad merged commit 99b6518 into elastic:main Nov 7, 2023
13 checks passed
@jdconrad
Copy link
Contributor Author

jdconrad commented Nov 7, 2023

Thank you for the review, @mayya-sharipova!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Search/Ranking Scoring, rescoring, rank evaluation. Team:Search Meta label for search team v8.12.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RRF ensure consistent ranking on primary and replica shards
3 participants