-
Notifications
You must be signed in to change notification settings - Fork 32
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 items higher / grouping results #24
Comments
Hi so to change the order will be relatively easy. Default sorter is here and proceed to sort by score then name (or a custom sortkey) Line 189 in 6a7d553
Inside the sorter you can access original item as So one option then is to sort by priority first then sort by score (when priority is the same) You may also be able to create an importance criteria and use something like this. For the grouping I'm not certain where to go. I imagine you want to score if the group to be best score among it's items. One hint I can give is that this will allow to output full information: https://github.com/jeancroy/FuzzySearch#get-score-detail-searchresult-object |
If I had to implement the feature I'd probably do something like this
GroupingFunction:
|
Hi Jean, thank you for Fuzzysearch, it's excellent. My feed contains categories and products, I'm wondering if...
My feed looks like this...
Note, I'm using Twitter typeahead. Grateful for any advice you can give.
Phil
The text was updated successfully, but these errors were encountered: