Suggestions generated from a "contains" rather than a "starts-with" #33
-
Hi is there any way to have the filter on suggestions generated do so from a "contains" rather than a "starts-with"? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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 |
Beta Was this translation helpful? Give feedback.
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.