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

You always write that score is higher, it means match is better. While actually score is lower if match is better. #775

Open
1 task done
Nurai1 opened this issue Aug 1, 2024 · 1 comment
Labels

Comments

@Nurai1
Copy link

Nurai1 commented Aug 1, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Description of the bug

e.g. from docs: "The higher the weight, the higher its relevance score."
image
but actually in the array when match is better it goes up, its score is lower
image

Screenshots

No response

@Nurai1 Nurai1 added the docs label Aug 1, 2024
@OverHash
Copy link

You are confusing the terminology of key weights and scores.

A high score indicates a high distance away from the target query. Thus, lower score => more relevant.

A key having higher relevance will correlate to lower scores for fields that match that key.
The docs should probably state something a bit better than "The higher the weight, the higher its relevance score". Maybe, "The higher the weight, the more relevant a key is."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants