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

add settings to enable/disable stopwords in analyzer #763

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Ronnie-Lon
Copy link

In some cases, for some doc fields like project_name/table_name, the stopwords are expected to be indexed and searchable. so would like to add a switch to disable stopwords.

Change-Id: Ib29ba3a7740cba49145f74b3417e45090bb23f34
@@ -34,6 +37,7 @@ public Configuration(Environment env,Settings settings) {
this.settings=settings;

this.useSmart = settings.get("use_smart", "false").equals("true");
this.useStopWords = settings.get("use_stopwords", "true").equals("true");
Copy link
Member

Choose a reason for hiding this comment

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

please change this config name from use_lowercase to enable_lowercase , to better align with the below config;

@medcl
Copy link
Member

medcl commented Apr 28, 2020

please help to resolve the conflicts and add example usage in README ,

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