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

Allow to clear the "stop words" in elasticlunr's index #35

Open
lucastobrazil opened this issue May 22, 2022 · 1 comment
Open

Allow to clear the "stop words" in elasticlunr's index #35

lucastobrazil opened this issue May 22, 2022 · 1 comment

Comments

@lucastobrazil
Copy link

It appears that searching for "common" words are filtered out with elasticlunr's "stop word" filter. So words like "to", and "but" will not return a result. I would like to be able to clear this one (my use case is searching for component names in a design system documentation site, so words like "tooltip" and "button" don't come up until you type the whole word

Elasticlunr has a method elasticlunr.clearStopWords() -> is it possible to expose that method in the config?

http://elasticlunr.com/docs/stop_word_filter.js.html

@JustinGillespie
Copy link

@lucastobrazil I am running into the exact same issue currently. I have tried to find some documentation for the stopwords and how to configure them via the gatsby plugin, but havent gotten far. I know this was awhile back but were you able to resolve this?

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

No branches or pull requests

2 participants