Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

attempt to improve search pertinence #19

Closed
wants to merge 4 commits into from

Conversation

plrenaudin
Copy link

Added a arbitrary substring match bonus to the scorer to improve pertinence.
We need a better scoring for query substring matches.
e.g. in command-palette
fuzzy

There is still the issue of highlighting the correct substring though

@plrenaudin
Copy link
Author

I fixed it, please review.

@walles
Copy link

walles commented Jul 6, 2015

How is this different from PR #15?

'Git Plus: Push',
'Git Plus: Show'
]
expect(bestMatch(candidates, 'push')).toBe 'Git Plus: Push'
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice test for a real-world case!

@walles
Copy link

walles commented Jul 8, 2015

Could you add another test case for getting the correct ordering when searching for "install"?

@plrenaudin
Copy link
Author

Please merge #22 instead

@plrenaudin plrenaudin closed this Jul 9, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants