Skip to content

Commit

Permalink
Update glossary.js
Browse files Browse the repository at this point in the history
Corrected error where the name of the term was not properly stored in the lunrjs index.
  • Loading branch information
rhewitt22 committed Oct 26, 2015
1 parent cb62a95 commit fd3a652
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 fd3a652

Please sign in to comment.