From: Sébastien Lesaint Date: Thu, 14 Mar 2019 16:53:33 +0000 (+0100) Subject: SONAR-11792 drop usage of standard token filter X-Git-Tag: 7.7~21 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e36997c3088ce36fbcea87c225cc8abf182bbfeb;p=sonarqube.git SONAR-11792 drop usage of standard token filter (it has no effect and causes a warning raised in ES logs) --- diff --git a/server/sonar-server-common/src/main/java/org/sonar/server/es/newindex/DefaultIndexSettingsElement.java b/server/sonar-server-common/src/main/java/org/sonar/server/es/newindex/DefaultIndexSettingsElement.java index 4500d1176f7..a1ff1d7735b 100644 --- a/server/sonar-server-common/src/main/java/org/sonar/server/es/newindex/DefaultIndexSettingsElement.java +++ b/server/sonar-server-common/src/main/java/org/sonar/server/es/newindex/DefaultIndexSettingsElement.java @@ -239,7 +239,7 @@ public enum DefaultIndexSettingsElement { @Override protected void setup() { set(TOKENIZER, STANDARD); - setList(FILTER, STANDARD, "word_filter", LOWERCASE, STOP, ASCIIFOLDING, PORTER_STEM); + setList(FILTER, "word_filter", LOWERCASE, STOP, ASCIIFOLDING, PORTER_STEM); } }, SEARCH_WORDS_ANALYZER(ANALYZER) { @@ -247,7 +247,7 @@ public enum DefaultIndexSettingsElement { @Override protected void setup() { set(TOKENIZER, STANDARD); - setList(FILTER, STANDARD, LOWERCASE, STOP, ASCIIFOLDING, PORTER_STEM); + setList(FILTER, LOWERCASE, STOP, ASCIIFOLDING, PORTER_STEM); } @Override @@ -264,7 +264,7 @@ public enum DefaultIndexSettingsElement { @Override protected void setup() { set(TOKENIZER, STANDARD); - setList(FILTER, STANDARD, LOWERCASE, STOP, ASCIIFOLDING, PORTER_STEM); + setList(FILTER, LOWERCASE, STOP, ASCIIFOLDING, PORTER_STEM); setList(CHAR_FILTER, HTML_STRIP); }