Skip to content

Commit

Permalink
Merge pull request #238 from maptime/glossary-hotfix
Browse files Browse the repository at this point in the history
Update glossary.js
  • Loading branch information
rhewitt22 committed Oct 26, 2015
2 parents cb62a95 + fd3a652 commit 4077959
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _includes/js/glossary.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ $(function() {
//Create Lunr.js index of glossary terms
function createIndex(data) {
index = lunr(function() {
this.field('term', {boost: 10});
this.field('name', {boost: 10});
this.field('definition');
this.field('tags', {boost: 3});
this.ref('id');
Expand All @@ -83,7 +83,7 @@ $(function() {
$.each(data, function(i, term) {
index.add({
id: i,
name: term.term,
name: term.name,
definition: term.definition,
tags: term.tags.toString()
});
Expand Down

0 comments on commit 4077959

Please sign in to comment.