question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add '*' setting for keys, to search all keys.

See original GitHub issue

It’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:closed
  • Created 7 years ago
  • Reactions:9
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

6reactions
fimius23commented, Aug 11, 2017

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.

0reactions
github-actions[bot]commented, Mar 31, 2020

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found