diff --git a/src/main/resources/esclient.xml b/src/main/resources/esclient.xml index db3b77126..ced99af28 100644 --- a/src/main/resources/esclient.xml +++ b/src/main/resources/esclient.xml @@ -164,6 +164,10 @@ "fess" "tr/protwords.txt" + + "fess" + "en/stopwords.txt" + "fess" "zh-cn/stopwords.txt" diff --git a/src/main/resources/fess_indices/fess.json b/src/main/resources/fess_indices/fess.json index ab250d08d..83afd8021 100644 --- a/src/main/resources/fess_indices/fess.json +++ b/src/main/resources/fess_indices/fess.json @@ -50,7 +50,7 @@ }, "stopword_en_filter": { "type": "stop", - "stopwords": "_english_" + "stopwords_path": "${fess.dictionary.path}en/stopwords.txt" }, "arabic_stop": { "type": "stop", diff --git a/src/main/resources/fess_indices/fess/en/stopwords.txt b/src/main/resources/fess_indices/fess/en/stopwords.txt new file mode 100644 index 000000000..db26497ed --- /dev/null +++ b/src/main/resources/fess_indices/fess/en/stopwords.txt @@ -0,0 +1,34 @@ +# https://github.com/apache/lucene-solr/blob/master/lucene/analysis/common/src/java/org/apache/lucene/analysis/en/EnglishAnalyzer.java +a +an +and +are +as +at +be +but +by +for +if +in +into +is +it +no +not +of +on +or +such +that +the +their +then +there +these, +they +this +to +was +will +with