Skip to content
This repository was archived by the owner on Sep 18, 2019. It is now read-only.

Config option to disable the stemmer #77

Open
nvenegas opened this issue May 27, 2015 · 2 comments
Open

Config option to disable the stemmer #77

nvenegas opened this issue May 27, 2015 · 2 comments

Comments

@nvenegas
Copy link

From olivernn/lunr.js#38 there are some cases in which you want to turn off lunrjs's stemmer (e.g., with it on "onboard" is the stem and "onboardi" fails to match it, but "onboarding" matches that stem).

It would be nice to be able to have a config option to remove the lunr stemmer the indexer's pipeline.

@hobzcalvin
Copy link

The given method for removing functions from the pipeline is:
index.pipeline.remove(index.stemmer) or
this.pipeline.remove(lunr.stemmer) if within the shortcut initializer
or to create an empty index and never add the unwanted pipeline functions. A config option would be further redundant.

@zephor
Copy link

zephor commented Aug 26, 2015

Unless I'm missing something it seems you have to remove the stemmer from the pipeline before the index is built. Currently the index is built by the jekyll plugin in this file: https://github.com/slashdotdash/jekyll-lunr-js-search/blob/master/lib/jekyll_lunr_js_search/indexer.rb

That means we have no control over removing the stemmer before that point. It seems a config option for configuring the indexer is the only option?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants