From 2830748c0cc351462af016116d3d1d4301efaffc Mon Sep 17 00:00:00 2001 From: lewisnyman Date: Tue, 31 Jul 2018 15:15:46 +0100 Subject: [PATCH] Remove stopword filter from Lunr index generation in middleman-search. This option is only available in the alphagov fork. See: https://github.com/ConvivioTeam/middleman-search/tree/pipeline-remove-config --- lib/govuk_tech_docs.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/govuk_tech_docs.rb b/lib/govuk_tech_docs.rb index c8527cb8..d58e6ca0 100644 --- a/lib/govuk_tech_docs.rb +++ b/lib/govuk_tech_docs.rb @@ -102,6 +102,10 @@ def active_page(page_path) content: { boost: 50, store: true }, url: { index: false, store: true }, } + + search.pipeline_remove = [ + 'stopWordFilter' + ] end end end