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

Scoring - implement score based on length of gaps between matched letter? #8

Closed
raghur opened this issue May 13, 2018 · 1 comment
Closed

Comments

@raghur
Copy link

raghur commented May 13, 2018

So this is a suggestion/question. The readme indicates that

The matched character is adjacent to a previous match.

This works in the following case - search string of blog
image

However, if I now type rpy so that the search string is blogrpy then
image

In this case, the first match has all the characters - but its obvious that it's of lesser quality.

I'm not sure how the adjacency scoring is implemented but could do something with sum of number of letters between matches? Something which has a higher number of letters between matched chars gets a lower score.

@raghur
Copy link
Author

raghur commented May 14, 2018

Invalid - there was some other sort function applying

@raghur raghur closed this as completed May 14, 2018
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

No branches or pull requests

1 participant