diff options
author | uvok cheetah | 2020-05-24 19:41:22 +0200 |
---|---|---|
committer | uvok cheetah | 2020-05-24 19:41:22 +0200 |
commit | 1eb672790e011950f81748265767f01c25c77d29 (patch) | |
tree | 76f91f65a4d8890903d2fe8ec855741f83384591 /assets/js | |
parent | 3385a7a3e69f0963306aeb14cb9614cf2c59fa01 (diff) |
Re-add trimmer to pipeline
Diffstat (limited to 'assets/js')
-rw-r--r-- | assets/js/search.js | 8 |
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 |