In response to some tests in October, the search on the homepage was too pedantic and didn't return truly "fuzzy" results. We didn't have an ability to change the search threshold using Defiant.js so looking at a new library, Fuse.js, we are able to render our search results in a ranking order, rather than a perfect match. Results are not based on complete string matching, but are based on a full Bitap implementation.
This PR:
removes Defiant.js
adds Fuse.js
fuzzyfies the search
updates the date field in search to be more acceptable
updates search.spec.js tests to work with Fuse instead of Defiant.
In response to some tests in October, the search on the homepage was too pedantic and didn't return truly "fuzzy" results. We didn't have an ability to change the search threshold using
Defiant.js
so looking at a new library, Fuse.js, we are able to render our search results in a ranking order, rather than a perfect match. Results are not based on complete string matching, but are based on a full Bitap implementation.This PR:
Defiant.js
Fuse.js
search.spec.js
tests to work with Fuse instead of Defiant.