krisk / Fuse

Lightweight fuzzy-search, in JavaScript
https://fusejs.io/
Apache License 2.0
18.15k stars 767 forks source link

Is there any way to just look thru all the nested string without specify the keys? #546

Closed sooxt98 closed 3 years ago

github-actions[bot] commented 3 years ago

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

krisk commented 3 years ago

Could you provide an example of what exactly you're looking for? Is it that you're searching through a list of strings?

sooxt98 commented 3 years ago

@krisk Instead of specify the keys, i wish there's a way to include everything into the search with *

const fuse = new Fuse(books, {
  keys: ['title', 'author.firstName']
})
const fuse = new Fuse(books, {
  keys: ['*']
})
github-actions[bot] commented 3 years ago

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

sooxt98 commented 3 years ago

Remove Stale