FuseJS Fuzzy Search
fusejs.io
1
Leaving SiteNav
External Link Disclaimer
You are about to visit fusejs.io. This website is not operated by us. We are not responsible for its content or privacy practices.
About this website
FuseJS is a powerful, lightweight fuzzy-search library for JavaScript created by Kiro Risk in 2012, providing approximate string matching for implementing search functionality without a backend search server, with features including fuzzy matching with configurable threshold, weighted key search across multiple fields, result ranking with match score, min match character length, location-based matching, include matches for highlighting, and multi-word queries, designed to be dependency-free and usable in both browser and Node-dot-js environments, adopted by thousands of applications including documentation sites, command palette tools, and admin panels for client-side search. The fuzzy matching algorithm uses the Bitap algorithm to find approximate matches between the search pattern and the target text, calculating a score based on the number of character differences, the distance between matched characters, and the location of the match within the text, with the threshold parameter controlling how strict the matching is, lower values requiring closer matches, and higher values allowing more typos, while the location parameter biases matching toward expected locations within the text. The weighted key search enables assigning different importance to different fields when searching objects, with higher-weighted fields contributing more to the overall match score, enabling prioritized field matching such as giving title fields more weight than description fields, while the multi-field search across arrays of objects enables searching through collections of data with nested property access through dot notation paths. The result sorting by match score. The match highlighting through include matches. The min match character length. The case sensitivity configuration. The diacritic removal. Designed by Kiro Risk. Designed for JavaScript developers.
Statistics
1
Views
0
Clicks
0
Like
0
Dislike