From 1eb672790e011950f81748265767f01c25c77d29 Mon Sep 17 00:00:00 2001 From: uvok cheetah Date: Sun, 24 May 2020 19:41:22 +0200 Subject: Re-add trimmer to pipeline --- assets/js/search.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'assets/js/search.js') 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 -- cgit v1.2.3