search scope includes content

This commit is contained in:
zzossig 2020-02-21 10:18:17 +09:00
parent 3cc4898929
commit d7e012c02d
1 changed files with 1 additions and 1 deletions

View File

@ -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,