Over a million developers have joined DZone.
Platinum Partner

Fuse.js - A Lightweight Fuzzy-Search JavaScript Library

· Web Dev Zone

The Web Dev Zone is brought to you in partnership with Mendix. Download this Forrester Report to gain a better understanding of the low-code platform market and how to make a strategic platform selection you won’t regret.

Fuse.js is a lightweight JavaScript library which allows you to create a search box on the client-side to search moderately large data sets in a fuzzy fashion.  It allows you to search through a list of data by providing a pattern (with a maximum length of 32 characters) which can include misspellings as well.

The results are sorted by score using a full Bitap algorithm, leveraging a modified version of the Diff, Match & Patch tool by Google. Performance was the main criteria when developing the library.  The search can search for two keys in 20K records in approximately 1 second.


Browser Support

  • Chrome
  • Safari 4+
  • Firefox 3.5+
  • IE 6,7,8,9+
  • Opera 10.6+
  • Mobile Safari (iOS 4+)

Requirements: None
Demo:http:/ / kiro. me/ projects/ fuse. html
License: Apache License v2.0

The Web Dev Zone is brought to you in partnership with Mendix. Better understand the aPaaS landscape and how the right platform can accelerate your software delivery cadence and capacity with the Gartner 2015 Magic Quadrant for Enterprise Application Platform as a Service.

Topics:

Published at DZone with permission of Hirvesh Munogee , DZone MVB .

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}