From 79b0f40695433248dcc4c66758c025152e3362c9 Mon Sep 17 00:00:00 2001 From: Ian Date: Sat, 24 Aug 2019 12:18:29 -0400 Subject: [PATCH 1/2] increase boost for result titles --- assets/html/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/html/search.js b/assets/html/search.js index 9718d4620f..c5de0fb0f6 100644 --- a/assets/html/search.js +++ b/assets/html/search.js @@ -165,7 +165,7 @@ $(document).ready(function() { var index = lunr(function () { this.ref('location') - this.field('title') + this.field('title',{boost: 10}) this.field('text') documenterSearchIndex['docs'].forEach(function(e) { this.add(e) From 65dd0520ff79261b12483fd82ac392760e57f885 Mon Sep 17 00:00:00 2001 From: Ian Date: Sun, 25 Aug 2019 19:26:07 -0400 Subject: [PATCH 2/2] change title boost to 100 --- assets/html/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/html/search.js b/assets/html/search.js index c5de0fb0f6..0d7bd5c3ce 100644 --- a/assets/html/search.js +++ b/assets/html/search.js @@ -165,7 +165,7 @@ $(document).ready(function() { var index = lunr(function () { this.ref('location') - this.field('title',{boost: 10}) + this.field('title',{boost: 100}) this.field('text') documenterSearchIndex['docs'].forEach(function(e) { this.add(e)