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

MB-64636 - Modified Weight for KNN Scorer #2127

Merged
merged 2 commits into from
Jan 13, 2025
Merged

MB-64636 - Modified Weight for KNN Scorer #2127

merged 2 commits into from
Jan 13, 2025

Conversation

metonymic-smokey
Copy link
Member

@metonymic-smokey metonymic-smokey commented Jan 6, 2025

  1. Changed weight of a kNN query to 1 to allow the boost value to kick in when computing query score.
    Since the weight of only the kNN scorer is changed, this will not impact how boosting is calculated for other types of queries.

To reduce the kNN score relative to the FTS query score, set boost to <1.

  1. Added a unit test which demonstrates boost increasing scores even for pure kNN queries(kNN + match none query).

@abhinavdangeti
Copy link
Member

@metonymic-smokey we'll want to raise a backport PR with this to 7.6.x-couchbase.

@metonymic-smokey
Copy link
Member Author

@abhinavdangeti here's the BP - #2130

@metonymic-smokey metonymic-smokey merged commit bd57cb6 into master Jan 13, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants