Skip to content

Commit

Permalink
fix(docs-app): remove stopWordFilter from lunr pipeline (#4536)
Browse files Browse the repository at this point in the history
  • Loading branch information
flakolefluk authored and benlesh committed Feb 27, 2019
1 parent 6805c7b commit 9eaebd4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs_app/src/app/search/search-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ self.onmessage = handleMessage;
// the path and search terms for a page
function createIndex(addFn) {
return lunr(/** @this */function() {
this.pipeline.remove(lunr.stopWordFilter);
this.ref('path');
this.field('titleWords', {boost: 100});
this.field('headingWords', {boost: 50});
Expand Down

0 comments on commit 9eaebd4

Please sign in to comment.