From d7e012c02d8999c3bf6f4091800419ea797d866c Mon Sep 17 00:00:00 2001 From: zzossig Date: Fri, 21 Feb 2020 10:18:17 +0900 Subject: [PATCH] search scope includes content --- layouts/partials/head/scripts.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/head/scripts.html b/layouts/partials/head/scripts.html index ec0a512..76b05f3 100644 --- a/layouts/partials/head/scripts.html +++ b/layouts/partials/head/scripts.html @@ -564,7 +564,7 @@ xhr.onload = function () { if (xhr.status === 200) { fuse = new Fuse(JSON.parse(xhr.response.toString('utf-8')), { - keys: sectionType.includes('publication') ? ['title', 'description', 'content'] : ['title', 'abstract'], + keys: sectionType.includes('publication') ? ['title', 'abstract'] : ['title', 'description', 'content'], includeMatches: enableSearchHighlight, shouldSort: true, threshold: 0.4,