Improve search settings

This commit is contained in:
Alex Shpak
2019-07-17 13:42:39 +02:00
parent c78c67ffed
commit a3f7d8b948
9 changed files with 47 additions and 33 deletions
+3 -3
View File
@@ -14,9 +14,9 @@
window.bookSearch = {
pages: pages,
idx: lunr(function() {
this.ref('idx');
this.field('title');
this.field('content');
this.ref("idx");
this.field("title", { boost: 10000 });
this.field("content");
pages.forEach(this.add, this);
}),