From e0a0dbae9f0dd5ac83c44a95cf8157152f5ff0af Mon Sep 17 00:00:00 2001 From: Michael Lange Date: Mon, 16 Apr 2018 15:09:47 -0700 Subject: [PATCH] Add tokenization to fuse search options --- ui/app/mixins/searchable.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/app/mixins/searchable.js b/ui/app/mixins/searchable.js index 958dc7ab8..c8b5c1ca5 100644 --- a/ui/app/mixins/searchable.js +++ b/ui/app/mixins/searchable.js @@ -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') || [],