mirror of
https://github.com/kemko/nomad.git
synced 2026-01-07 02:45:42 +03:00
Add tokenization to fuse search options
This commit is contained in:
@@ -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') || [],
|
||||
|
||||
Reference in New Issue
Block a user