mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-12-22 09:05:07 +01:00
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
This commit is contained in:
parent
624b1d0afb
commit
f64c44c8d2
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user