Skip to content

Commit

Permalink
Improving search matching based on result title: Increase field boost…
Browse files Browse the repository at this point in the history
… to 100 (#1113)
  • Loading branch information
IanButterworth authored and mortenpi committed Aug 26, 2019
1 parent 5ae0677 commit c5eedb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/html/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c5eedb2

Please sign in to comment.