Skip to content

Commit f64c44c

Browse files
committed
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
1 parent 624b1d0 commit f64c44c

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

assets/js/fastsearch.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,9 @@ function loadSearch() {
1414
if (data) {
1515
// fuse.js options; check fuse.js website for details
1616
var options = {
17-
isCaseSensitive: false,
18-
shouldSort: true,
19-
location: 0,
2017
distance: 100,
2118
threshold: 0.4,
22-
minMatchCharLength: 0,
19+
ignoreLocation: true,
2320
keys: [
2421
'title',
2522
'permalink',

0 commit comments

Comments
 (0)