Add tokenization to fuse search options

This commit is contained in:
Michael Lange
2018-04-16 15:09:47 -07:00
parent 3fc73d15a9
commit d16b3327f7

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') || [],