Link Search Menu Expand Document

Fusejs

=== UseCase

  • set threshold to 0
const options = {
  // isCaseSensitive: false,
  // includeScore: false,
  // shouldSort: true,
  // includeMatches: false,
  // findAllMatches: false,
  // minMatchCharLength: 1,
  // location: 0,
  threshold: 0,
  // distance: 100,
  // useExtendedSearch: false,
  keys: [
    "title",
    "author.firstName"
  ]
};

const fuse = new Fuse(list, options);

Table of contents