Skip to content

add settings to enable/disable stopwords in analyzer#763

Open
Ronnie-Lon wants to merge 1 commit into
infinilabs:masterfrom
Ronnie-Lon:add_stopword_switch
Open

add settings to enable/disable stopwords in analyzer#763
Ronnie-Lon wants to merge 1 commit into
infinilabs:masterfrom
Ronnie-Lon:add_stopword_switch

Conversation

@Ronnie-Lon
Copy link
Copy Markdown

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
this.settings=settings;

this.useSmart = settings.get("use_smart", "false").equals("true");
this.useStopWords = settings.get("use_stopwords", "true").equals("true");
Copy link
Copy Markdown
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
Copy Markdown
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