Add tokenization to fuse search options

This commit is contained in:
Michael Lange 2018-04-16 15:09:47 -07:00
parent 0fb407baec
commit e0a0dbae9f
1 changed files with 3 additions and 1 deletions

View File

@ -33,9 +33,11 @@ export default Mixin.create({
fuse: computed('listToSearch.[]', 'fuzzySearchProps.[]', function() {
return new Fuse(this.get('listToSearch'), {
shouldSort: true,
threshold: 0.6,
threshold: 0.4,
location: 0,
distance: 100,
tokenize: true,
matchAllTokens: true,
maxPatternLength: 32,
minMatchCharLength: 1,
keys: this.get('fuzzySearchProps') || [],