on master help sign in
tie up uncommitted work and update docs
commita651ad6771be432519cf1a284966028fb7ac5f9c authorMorgan Sutherland <morgan@morgansutherland.com> dateMon 1 Jul 2019, 14:40 (7 years ago) parente30fc77
2 files changed+3−4
content/docs+1−1 static/scripts.js+2−3
content/docs+1−1

Submodule changed.

static/scripts.js+2−3
@@ -130,7 +130,7 @@ function debounce(func, wait) {
130130function makeTeaser(body, terms) {
131131 var TERM_WEIGHT = 40;
132132 var NORMAL_WORD_WEIGHT = 2;
133− var FIRST_WORD_WEIGHT = 1;
133+ var FIRST_WORD_WEIGHT = 8;
134134 //var TEASER_MAX_WORDS = 17;
135135 var TEASER_MAX_CHARS = 63;
136136
@@ -274,7 +274,7 @@ function initSearch() {
274274 var MAX_ITEMS = 200;
275275
276276 var options = {
277− bool: "OR",
277+ bool: "AND",
278278 fields: {
279279 title: {boost: 2},
280280 body: {boost: 1},
@@ -322,7 +322,6 @@ function initSearch() {
322322 searchResults.style.display = term === "" ? "none" : "block";
323323 searchResults.style.overflowY = term === "" ? "hidden" : "scroll";
324324 searchResultsItems.innerHTML = "";
325−
326325 if (term === "") {
327326 return;
328327 }