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

Replace default stop words filter with a custom function. #38

Merged

Conversation

lewisnyman
Copy link
Contributor

We had some feedback during testing that some search terms were not returning any results. After some digging, I found out that lunr.js implements a stop word filter by default.

The default list includes useful words like 'get', especially in API docs. This PR reimplemented the stop word list so we can maintain a custom list.

Initially I've only removed 'get' but we might find a few more to remove with wider testing.

The default list ignored useful words like 'get'
Copy link
Contributor

@MatMoore MatMoore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍I wouldn't be surprised if removing stopwords entirely improved the results.

Might be worth getting a list of search terms from GA and seeing what other queries include them.

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.

2 participants