Skip to content

Suggestions generated from a "contains" rather than a "starts-with" #33

Answered by niketpathak
cathalmsg asked this question in Q&A
Discussion options

You must be logged in to vote

Hello,

Generally, typeahead is able to filter suggestions with multiple words, for example, in the movies example on the playground, if you search for steel, then the suggestion Man of Steel should rightly pop-up.

However, if you wish that suggestions should be filtered by any letter in a word, it is currently not possible due to the way the Trie data structure works. This is called fuzzy matching and there exists another package that might suit your needs.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by niketpathak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants