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

Match at first character > substring #41

Open
scottmas opened this issue Jul 19, 2017 · 0 comments
Open

Match at first character > substring #41

scottmas opened this issue Jul 19, 2017 · 0 comments

Comments

@scottmas
Copy link

scottmas commented Jul 19, 2017

Search string: che

[ { string: 'Teachers Credit Union', score: 11, index: 136 },
  { string: 'Teachers Chemical', score: 11, index: 20 }
  { string: 'Chevron Valley CU', score: 11, index: 270 },
]

But Chevron Valley CU should score higher than Teachers Credit Union since Chevron starts with che while Teachers only has a substring che. Additionally, Teachers Chemical score higher since a word inside the string begins with chec (even though it's not the first word inside the string).

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