diff options
-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 |