Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds custom token separator for the search index #42

Conversation

lewisnyman
Copy link
Contributor

Similar to #41, I found that we needed to be able to override the default lunr tokenizer separator. This fixes the issue found in alphagov/registers-tech-docs#109 - queries for json now return results that includes application/json

I've added this config option in the middleman-search alphagov fork. See: alphagov/middleman-search#2

For more background info: olivernn/lunr.js#365

@jonathanglassman jonathanglassman merged commit 2b9e62f into alphagov:master Aug 1, 2018
@lewisnyman lewisnyman mentioned this pull request Aug 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants