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
Implements the search cutoff #4466
Conversation
8195141
to
d06b124
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for implementing this!
We need to change the score details
milli/src/score_details.rs
Outdated
@@ -256,6 +261,13 @@ impl ScoreDetails { | |||
details_map.insert(vector, details); | |||
order += 1; | |||
} | |||
ScoreDetails::Skipped => { | |||
details_map.insert( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will need updating in the scoreDetails spec
Co-authored-by: Louis Dureuil <louis@meilisearch.com>
handles the niche case 🐩 in the hybrid search where: 1. a sort ranking rule is the first rule. 2. the keyword search is skipped at the first rule. 3. the semantic search is not skipped at the first rule. Previously, we would have the skipped search winning, whereas we want the non skipped one winning.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, and with good tests ☀️
bors merge
Merge conflict. |
bors merge |
Pull Request
Related issue
Fixes #4488
What does this PR do?
Skip
ranking details for the ranking rules that were skipped