search scope includes content
This commit is contained in:
parent
3cc4898929
commit
d7e012c02d
|
@ -564,7 +564,7 @@
|
||||||
xhr.onload = function () {
|
xhr.onload = function () {
|
||||||
if (xhr.status === 200) {
|
if (xhr.status === 200) {
|
||||||
fuse = new Fuse(JSON.parse(xhr.response.toString('utf-8')), {
|
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,
|
includeMatches: enableSearchHighlight,
|
||||||
shouldSort: true,
|
shouldSort: true,
|
||||||
threshold: 0.4,
|
threshold: 0.4,
|
||||||
|
|
Loading…
Reference in New Issue