summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruvok cheetah2020-05-24 19:41:22 +0200
committeruvok cheetah2020-05-24 19:41:22 +0200
commit1eb672790e011950f81748265767f01c25c77d29 (patch)
tree76f91f65a4d8890903d2fe8ec855741f83384591
parent3385a7a3e69f0963306aeb14cb9614cf2c59fa01 (diff)
Re-add trimmer to pipeline
-rw-r--r--assets/js/search.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/assets/js/search.js b/assets/js/search.js
index 1ddb264..fa3b0c5 100644
--- a/assets/js/search.js
+++ b/assets/js/search.js
@@ -17,9 +17,11 @@ const do_search = function() {
var mylunr = function (config) {
var builder = new lunr.Builder
- // no pipeline
- config.call(builder, builder)
- return builder.build()
+ builder.pipeline.add(
+ lunr.trimmer
+ );
+ config.call(builder, builder);
+ return builder.build();
}
// index