Selaa lähdekoodia

#1768 add en/stopwords.txt

Shinsuke Sugaya 7 vuotta sitten
vanhempi
commit
1c7b945422

+ 4 - 0
src/main/resources/esclient.xml

@@ -164,6 +164,10 @@
 			<arg>"fess"</arg>
 			<arg>"tr/protwords.txt"</arg>
 		</postConstruct>
+		<postConstruct name="addConfigFile">
+			<arg>"fess"</arg>
+			<arg>"en/stopwords.txt"</arg>
+		</postConstruct>
 		<postConstruct name="addConfigFile">
 			<arg>"fess"</arg>
 			<arg>"zh-cn/stopwords.txt"</arg>

+ 1 - 1
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",

+ 34 - 0
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