Skip to content

Commit

Permalink
Remove stopword filter from Lunr index generation in middleman-search.
Browse files Browse the repository at this point in the history
This option is only available in the alphagov fork. See: https://github.com/ConvivioTeam/middleman-search/tree/pipeline-remove-config
  • Loading branch information
lewisnyman committed Jul 31, 2018
1 parent 51ae107 commit 2830748
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/govuk_tech_docs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2830748

Please sign in to comment.