gatsby-plugin-elasticlunr-search icon indicating copy to clipboard operation
gatsby-plugin-elasticlunr-search copied to clipboard

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

Open lucastobrazil opened this issue 2 years ago • 1 comments

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

lucastobrazil avatar May 22 '22 22:05 lucastobrazil

@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?

JustinGillespie avatar Jan 08 '24 14:01 JustinGillespie