-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Fuzzy Search or Approximate String Matching #525
Comments
+1 I believe this was implemented in 0.9, but not the case in 0.10 |
In v0.10, typeahead.js will provide a dataset implementation out of the box. It'll also support custom implementations, so in theory you could write your own dataset that did a fuzzy search. |
+1 on this! VERY important feature for any suggestion engine! |
I managed to get fuzzy search working, but as this repository has been inactive for several months now I really can't be asked to do yet another pull request! |
Sharing the code I used Gonna go one up, and give the code for fuzzy highlighting
The above takes care of the fuzziness. Then you can just iterate over all your select 2 elements On typeahead:change
Credit for fuzzy code -: https://github.com/bripkens/fuzzy.js I answered the same in stack overflow as well -: http://stackoverflow.com/questions/23226054/add-color-to-match-text-highlighting-in-twitter-typeahead/33030407#33030407 |
I'd like to see the ability to search tokens based on matching a substring. http://en.wikipedia.org/wiki/Approximate_string_matching
Is the ability to add this dependent on #335? I'm a little surprised this hasn't been requested before. Am I missing something totally obvious?
Thanks!
The text was updated successfully, but these errors were encountered: