Hey guys, today I’m going to talk about fuse-operators, this library allows us to make search applying different conditions on a string search just like you would normally do on SQL Language. No back-end database is needed, just javascript objects.

What is a fuzzy search?

A fuzzy search is a process that locates elements that are likely to be relevant to a search argument even when the argument does not exactly correspond to the desired information. A fuzzy matching program can operate like a spell checker and spelling-error corrector. For example, if a user tries to find “Misissippi” the program can do a match with Mississippi.

Installation

How to use

Given this data model.

And operator

Explanation: Only the first row will be returned because `old man` matches with title and scalzi match with author.lastName from the same row

Or operator

Explanation: Both rows matches because `old man` matches with the title from the first row and ` artist` match with title from the second row

Subset operator