Add '*' setting for keys, to search all keys.
See original GitHub issueIt’d be cool if the keys
setting could be set to '*'
to search all keys.
Example:
var options = {
shouldSort: true,
threshold: 0.6,
location: 0,
distance: 100,
maxPatternLength: 32,
keys: '*'
};
var fuse = new Fuse(list, options); // "list" is the item array
var result = fuse.search("red");
Result:
[
{
"title": "Backwards, Red Dwarf",
"author": {
"firstName": "Rob",
"lastName": "Grant"
}
},
{
"title": "HTML5",
"author": {
"firstName": "Remy",
"lastName": "Sharp"
}
},
{
"title": "The Book of Lies",
"author": {
"firstName": "Brad",
"lastName": "Meltzer"
}
},
{
"title": "Lamb",
"author": {
"firstName": "Christopher",
"lastName": "Moore"
}
},
{
"title": "Fool",
"author": {
"firstName": "Christopher",
"lastName": "Moore"
}
},
{
"title": "The Preservationist",
"author": {
"firstName": "David",
"lastName": "Maine"
}
}
]
Issue Analytics
- State:
- Created 7 years ago
- Reactions:9
- Comments:5 (1 by maintainers)
Top Results From Across the Web
How do I reassign hot keys for my keyboard? - Microsoft Support
From the displayed list of key names, select the key that you want to reassign. In the command list of the key that...
Read more >Use keyboard shortcuts - Google Ads Help
Key 1 then Key 2. Press the first key, release, and then press the second key. For example, to use the shortcut G...
Read more >How to Get All Keys in Redis | Tutorial by Chartio
This is best shown through the redis-cli (command line interface) using GET and SET commands. For example, we may want to store some...
Read more >Top Windows 10 Shortcut Keys - YouTube
Save precious time and get the most out of Windows 10 with these top Windows shortcuts. I start basic and then move on...
Read more >Mac keyboard shortcuts - Apple Support
Mac menus and keyboards often use symbols for certain keys, ... Add the Control key to this shortcut to make the adjustment on...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I vote for the logic where “If the key option is empty, then search all keys”. I think it’s really on the developer using the logic to worry about the max depth. They can always write code to map() their array to something sane before they run the fuzzy search.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days