Overview of Fuse.js features
mainFuse.js is a lightweight, zero-dependency fuzzy-search library compatible with browsers, Node.js, and Deno. Key capabilities include:
- Fuzzy search: Typo-tolerant matching using the Bitap algorithm.
- Token search: Multi-word query splitting with term-based fuzzy matching and IDF ranking.
- Extended search: Support for operators like exact, prefix, suffix, inverse, and include matching.
- Logical search: Structured queries using
$andand$orexpressions. - Weighted keys: Ability to boost specific fields (e.g., prioritizing
titleoverdescription). - Nested search: Accessing data via dot notation, array notation, or a custom
getFn. - Two builds: Available in a full version (~8.6 kB gzip) or a basic version (~6.8 kB gzip).