From 2c5a99270476aeb3def3370d7131495509a7ba59 Mon Sep 17 00:00:00 2001 From: flakolefluk Date: Wed, 6 Feb 2019 17:39:14 -0300 Subject: [PATCH] fix(docs-app): remove stopWordFilter from lunr pipeline --- docs_app/src/app/search/search-worker.js | 1 + 1 file changed, 1 insertion(+) diff --git a/docs_app/src/app/search/search-worker.js b/docs_app/src/app/search/search-worker.js index 503a75aaa8..d29744c608 100644 --- a/docs_app/src/app/search/search-worker.js +++ b/docs_app/src/app/search/search-worker.js @@ -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});