From f64c44c8d2a19fd0ad833bea92033b0b13e3c276 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Sat, 30 Jan 2021 11:56:09 +0530 Subject: [PATCH] tweak fuse opts -rm default opts, - add ignoreLocation (to search everywhere not just 1st 60 chars) - ref https://fusejs.io/concepts/scoring-theory.html#scoring-theory --- assets/js/fastsearch.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/assets/js/fastsearch.js b/assets/js/fastsearch.js index f2f50385..935d8fbd 100644 --- a/assets/js/fastsearch.js +++ b/assets/js/fastsearch.js @@ -14,12 +14,9 @@ function loadSearch() { if (data) { // fuse.js options; check fuse.js website for details var options = { - isCaseSensitive: false, - shouldSort: true, - location: 0, distance: 100, threshold: 0.4, - minMatchCharLength: 0, + ignoreLocation: true, keys: [ 'title', 'permalink',