Skip to content

Commit

Permalink
Merge pull request #42 from ConvivioTeam/add-custom-tokenizer-separator
Browse files Browse the repository at this point in the history
Adds custom token separator for the search index
  • Loading branch information
jonathanglassman authored Aug 1, 2018
2 parents 738fe6f + 0d16fc4 commit 2b9e62f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/govuk_tech_docs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ def active_page(page_path)
search.pipeline_remove = [
'stopWordFilter'
]

search.tokenizer_separator = '/[\s\-/]+/'
end
end
end
Expand Down

0 comments on commit 2b9e62f

Please sign in to comment.