Skip to content

Apache Lucene open-source search software

LUCENE-5211: Better javadocs and error checking of 'format' option in StopFilterFactory, as well as comments in all snowball formated files about specifying format option

Chris M. Hostetter499bd3688a32
diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txt
index 34d0c635bd2..f149c45443f 100644
--- a/lucene/CHANGES.txt
+++ b/lucene/CHANGES.txt
@@ -78,6 +78,12 @@ API Changes:
with IndexSearcher when an ExecutorService is specified.
(Ryan Ernst, Mike McCandless, Robert Muir)
+Documentation
+
+* LUCENE-5211: Better javadocs and error checking of 'format' option in
+ StopFilterFactory, as well as comments in all snowball formated files
+ about specifying format option. (hossman)
+
Changes in backwards compatibility policy
* LUCENE-5204: Directory doesn't have default implementations for
diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/core/StopFilterFactory.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/core/StopFilterFactory.java
index 3e7902ea4ec..5e3c7e87fef 100644
--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/core/StopFilterFactory.java
+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/core/StopFilterFactory.java
@@ -22,22 +22,57 @@ import org.apache.lucene.analysis.util.CharArraySet;
import org.apache.lucene.analysis.util.ResourceLoader;
import org.apache.lucene.analysis.util.ResourceLoaderAware;
import org.apache.lucene.analysis.util.TokenFilterFactory;
+import org.apache.lucene.analysis.util.WordlistLoader; // jdocs
import java.util.Map;
import java.io.IOException;
/**
* Factory for {@link StopFilter}.
+ *
* <pre class="prettyprint">
* &lt;fieldType name="text_stop" class="solr.TextField" positionIncrementGap="100" autoGeneratePhraseQueries="true"&gt;
* &lt;analyzer&gt;
* &lt;tokenizer class="solr.WhitespaceTokenizerFactory"/&gt;
* &lt;filter class="solr.StopFilterFactory" ignoreCase="true"
- * words="stopwords.txt"
+ * words="stopwords.txt" format="wordset"
* &lt;/analyzer&gt;
* &lt;/fieldType&gt;</pre>
+ *
+ * <p>
+ * All attributes are optional:
+ * </p>
+ * <ul>
+ * <li><code>ignoreCase</code> defaults to <code>false</code></li>
+ * <li><code>words</code> should be the name of a stopwords file to parse, if not
+ * specified the factory will use {@link StopAnalyzer#ENGLISH_STOP_WORDS_SET}
+ * </li>
+ * <li><code>format</code> defines how the <code>words</code> file will be parsed,
+ * and defaults to <code>wordset</code>. If <code>words</code> is not specified,
+ * then <code>format</code> must not be specified.
+ * </li>
+ * </ul>
+ * <p>
+ * The valid values for the <code>format</code> option are:
+ * </p>
+ * <ul>
+ * <li><code>wordset</code> - This is the default format, which supports one word per
+ * line (including any intra-word whitespace) and allows whole line comments
+ * begining with the "#" character. Blank lines are ignored. See
+ * {@link WordlistLoader#getLines WordlistLoader.getLines} for details.
+ * </li>
+ * <li><code>snowball</code> - This format allows for multiple words specified on each
+ * line, and trailing comments may be specified using the vertical line ("&#124;").
+ * Blank lines are ignored. See
+ * {@link WordlistLoader#getSnowballWordSet WordlistLoader.getSnowballWordSet}
+ * for details.
+ * </li>
+ * </ul>
*/
public class StopFilterFactory extends TokenFilterFactory implements ResourceLoaderAware {
+ public static final String FORMAT_WORDSET = "wordset";
+ public static final String FORMAT_SNOWBALL = "snowball";
+
private CharArraySet stopWords;
private final String stopWordFiles;
private final String format;
@@ -48,7 +83,7 @@ public class StopFilterFactory extends TokenFilterFactory implements ResourceLoa
super(args);
assureMatchVersion();
stopWordFiles = get(args, "words");
- format = get(args, "format");
+ format = get(args, "format", (null == stopWordFiles ? null : FORMAT_WORDSET));
ignoreCase = getBoolean(args, "ignoreCase", false);
if (!args.isEmpty()) {
throw new IllegalArgumentException("Unknown parameters: " + args);
@@ -58,12 +93,17 @@ public class StopFilterFactory extends TokenFilterFactory implements ResourceLoa
@Override
public void inform(ResourceLoader loader) throws IOException {
if (stopWordFiles != null) {
- if ("snowball".equalsIgnoreCase(format)) {
+ if (FORMAT_WORDSET.equalsIgnoreCase(format)) {
+ stopWords = getWordSet(loader, stopWordFiles, ignoreCase);
+ } else if (FORMAT_SNOWBALL.equalsIgnoreCase(format)) {
stopWords = getSnowballWordSet(loader, stopWordFiles, ignoreCase);
} else {
- stopWords = getWordSet(loader, stopWordFiles, ignoreCase);
+ throw new IllegalArgumentException("Unknown 'format' specified for 'words' file: " + format);
}
} else {
+ if (null != format) {
+ throw new IllegalArgumentException("'format' can not be specified w/o an explicit 'words' file: " + format);
+ }
stopWords = new CharArraySet(luceneMatchVersion, StopAnalyzer.ENGLISH_STOP_WORDS_SET, ignoreCase);
}
}
diff --git a/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/danish_stop.txt b/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/danish_stop.txt
index a3ff5fe122c..42e6145b98e 100644
--- a/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/danish_stop.txt
+++ b/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/danish_stop.txt
@@ -4,6 +4,8 @@
| Also see http://www.opensource.org/licenses/bsd-license.html
| - Encoding was converted to UTF-8.
| - This notice was added.
+ |
+ | NOTE: To use this file with StopFilterFactory, you must specify format="snowball"
| A Danish stop word list. Comments begin with vertical bar. Each stop
| word is at the start of a line.
diff --git a/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/dutch_stop.txt b/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/dutch_stop.txt
index f4d61f5092c..47a2aeacf6f 100644
--- a/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/dutch_stop.txt
+++ b/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/dutch_stop.txt
@@ -4,6 +4,8 @@
| Also see http://www.opensource.org/licenses/bsd-license.html
| - Encoding was converted to UTF-8.
| - This notice was added.
+ |
+ | NOTE: To use this file with StopFilterFactory, you must specify format="snowball"
| A Dutch stop word list. Comments begin with vertical bar. Each stop
| word is at the start of a line.
diff --git a/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/english_stop.txt b/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/english_stop.txt
index 821c03e594b..0385841d77b 100644
--- a/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/english_stop.txt
+++ b/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/english_stop.txt
@@ -4,6 +4,8 @@
| Also see http://www.opensource.org/licenses/bsd-license.html
| - Encoding was converted to UTF-8.
| - This notice was added.
+ |
+ | NOTE: To use this file with StopFilterFactory, you must specify format="snowball"
| An English stop word list. Comments begin with vertical bar. Each stop
| word is at the start of a line.
diff --git a/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/finnish_stop.txt b/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/finnish_stop.txt
index addad798c4b..4372c9a055b 100644
--- a/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/finnish_stop.txt
+++ b/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/finnish_stop.txt
@@ -4,6 +4,8 @@
| Also see http://www.opensource.org/licenses/bsd-license.html
| - Encoding was converted to UTF-8.
| - This notice was added.
+ |
+ | NOTE: To use this file with StopFilterFactory, you must specify format="snowball"
| forms of BE
diff --git a/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/french_stop.txt b/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/french_stop.txt
index 20d12cb01e4..749abae6846 100644
--- a/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/french_stop.txt
+++ b/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/french_stop.txt
@@ -4,6 +4,8 @@
| Also see http://www.opensource.org/licenses/bsd-license.html
| - Encoding was converted to UTF-8.
| - This notice was added.
+ |
+ | NOTE: To use this file with StopFilterFactory, you must specify format="snowball"
| A French stop word list. Comments begin with vertical bar. Each stop
| word is at the start of a line.
diff --git a/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/german_stop.txt b/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/german_stop.txt
index f7703841887..86525e7ae08 100644
--- a/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/german_stop.txt
+++ b/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/german_stop.txt
@@ -4,6 +4,8 @@
| Also see http://www.opensource.org/licenses/bsd-license.html
| - Encoding was converted to UTF-8.
| - This notice was added.
+ |
+ | NOTE: To use this file with StopFilterFactory, you must specify format="snowball"
| A German stop word list. Comments begin with vertical bar. Each stop
| word is at the start of a line.
diff --git a/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/hungarian_stop.txt b/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/hungarian_stop.txt
index 1a96f1db6f2..37526da8aa9 100644
--- a/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/hungarian_stop.txt
+++ b/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/hungarian_stop.txt
@@ -4,6 +4,8 @@
| Also see http://www.opensource.org/licenses/bsd-license.html
| - Encoding was converted to UTF-8.
| - This notice was added.
+ |
+ | NOTE: To use this file with StopFilterFactory, you must specify format="snowball"
| Hungarian stop word list
| prepared by Anna Tordai
diff --git a/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/italian_stop.txt b/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/italian_stop.txt
index 4cb5b0891b1..1219cc773ab 100644
--- a/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/italian_stop.txt
+++ b/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/italian_stop.txt
@@ -4,6 +4,8 @@
| Also see http://www.opensource.org/licenses/bsd-license.html
| - Encoding was converted to UTF-8.
| - This notice was added.
+ |
+ | NOTE: To use this file with StopFilterFactory, you must specify format="snowball"
| An Italian stop word list. Comments begin with vertical bar. Each stop
| word is at the start of a line.
diff --git a/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/norwegian_stop.txt b/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/norwegian_stop.txt
index e76f36e69ed..a7a2c28ba54 100644
--- a/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/norwegian_stop.txt
+++ b/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/norwegian_stop.txt
@@ -4,6 +4,8 @@
| Also see http://www.opensource.org/licenses/bsd-license.html
| - Encoding was converted to UTF-8.
| - This notice was added.
+ |
+ | NOTE: To use this file with StopFilterFactory, you must specify format="snowball"
| A Norwegian stop word list. Comments begin with vertical bar. Each stop
| word is at the start of a line.
diff --git a/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/portuguese_stop.txt b/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/portuguese_stop.txt
index 276c1b446f2..acfeb01af6b 100644
--- a/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/portuguese_stop.txt
+++ b/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/portuguese_stop.txt
@@ -4,6 +4,8 @@
| Also see http://www.opensource.org/licenses/bsd-license.html
| - Encoding was converted to UTF-8.
| - This notice was added.
+ |
+ | NOTE: To use this file with StopFilterFactory, you must specify format="snowball"
| A Portuguese stop word list. Comments begin with vertical bar. Each stop
| word is at the start of a line.
diff --git a/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/russian_stop.txt b/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/russian_stop.txt
index 64307693457..55271400c64 100644
--- a/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/russian_stop.txt
+++ b/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/russian_stop.txt
@@ -4,6 +4,8 @@
| Also see http://www.opensource.org/licenses/bsd-license.html
| - Encoding was converted to UTF-8.
| - This notice was added.
+ |
+ | NOTE: To use this file with StopFilterFactory, you must specify format="snowball"
| a russian stop word list. comments begin with vertical bar. each stop
| word is at the start of a line.
diff --git a/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/spanish_stop.txt b/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/spanish_stop.txt
index 2db14760075..487d78c8d56 100644
--- a/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/spanish_stop.txt
+++ b/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/spanish_stop.txt
@@ -4,6 +4,8 @@
| Also see http://www.opensource.org/licenses/bsd-license.html
| - Encoding was converted to UTF-8.
| - This notice was added.
+ |
+ | NOTE: To use this file with StopFilterFactory, you must specify format="snowball"
| A Spanish stop word list. Comments begin with vertical bar. Each stop
| word is at the start of a line.
diff --git a/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/swedish_stop.txt b/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/swedish_stop.txt
index 22bddfd8cb3..096f87f6766 100644
--- a/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/swedish_stop.txt
+++ b/lucene/analysis/common/src/resources/org/apache/lucene/analysis/snowball/swedish_stop.txt
@@ -4,6 +4,8 @@
| Also see http://www.opensource.org/licenses/bsd-license.html
| - Encoding was converted to UTF-8.
| - This notice was added.
+ |
+ | NOTE: To use this file with StopFilterFactory, you must specify format="snowball"
| A Swedish stop word list. Comments begin with vertical bar. Each stop
| word is at the start of a line.
diff --git a/lucene/analysis/common/src/test/org/apache/lucene/analysis/core/TestStopFilterFactory.java b/lucene/analysis/common/src/test/org/apache/lucene/analysis/core/TestStopFilterFactory.java
index af5701f629b..db60696de8e 100644
--- a/lucene/analysis/common/src/test/org/apache/lucene/analysis/core/TestStopFilterFactory.java
+++ b/lucene/analysis/common/src/test/org/apache/lucene/analysis/core/TestStopFilterFactory.java
@@ -57,6 +57,11 @@ public class TestStopFilterFactory extends BaseTokenStreamFactoryTestCase {
assertTrue(words.contains("her"));
assertTrue(words.contains("hers"));
assertTrue(words.contains("herself"));
+
+ // defaults
+ factory = (StopFilterFactory) tokenFilterFactory("Stop");
+ assertEquals(StopAnalyzer.ENGLISH_STOP_WORDS_SET, factory.getStopWords());
+ assertEquals(false, factory.isIgnoreCase());
}
/** Test that bogus arguments result in exception */
@@ -68,4 +73,30 @@ public class TestStopFilterFactory extends BaseTokenStreamFactoryTestCase {
assertTrue(expected.getMessage().contains("Unknown parameters"));
}
}
+
+ /** Test that bogus arguments result in exception */
+ public void testBogusFormats() throws Exception {
+ try {
+ tokenFilterFactory("Stop",
+ "words", "stop-snowball.txt",
+ "format", "bogus");
+ fail();
+ } catch (IllegalArgumentException expected) {
+ String msg = expected.getMessage();
+ assertTrue(msg, msg.contains("Unknown"));
+ assertTrue(msg, msg.contains("format"));
+ assertTrue(msg, msg.contains("bogus"));
+ }
+ try {
+ tokenFilterFactory("Stop",
+ // implicit default words file
+ "format", "bogus");
+ fail();
+ } catch (IllegalArgumentException expected) {
+ String msg = expected.getMessage();
+ assertTrue(msg, msg.contains("can not be specified"));
+ assertTrue(msg, msg.contains("format"));
+ assertTrue(msg, msg.contains("bogus"));
+ }
+ }
}
diff --git a/solr/example/example-schemaless/solr/collection1/conf/lang/stopwords_da.txt b/solr/example/example-schemaless/solr/collection1/conf/lang/stopwords_da.txt
index a3ff5fe122c..42e6145b98e 100644
--- a/solr/example/example-schemaless/solr/collection1/conf/lang/stopwords_da.txt
+++ b/solr/example/example-schemaless/solr/collection1/conf/lang/stopwords_da.txt
@@ -4,6 +4,8 @@
| Also see http://www.opensource.org/licenses/bsd-license.html
| - Encoding was converted to UTF-8.
| - This notice was added.
+ |
+ | NOTE: To use this file with StopFilterFactory, you must specify format="snowball"
| A Danish stop word list. Comments begin with vertical bar. Each stop
| word is at the start of a line.
diff --git a/solr/example/example-schemaless/solr/collection1/conf/lang/stopwords_de.txt b/solr/example/example-schemaless/solr/collection1/conf/lang/stopwords_de.txt
index f7703841887..86525e7ae08 100644
--- a/solr/example/example-schemaless/solr/collection1/conf/lang/stopwords_de.txt
+++ b/solr/example/example-schemaless/solr/collection1/conf/lang/stopwords_de.txt
@@ -4,6 +4,8 @@
| Also see http://www.opensource.org/licenses/bsd-license.html
| - Encoding was converted to UTF-8.
| - This notice was added.
+ |
+ | NOTE: To use this file with StopFilterFactory, you must specify format="snowball"
| A German stop word list. Comments begin with vertical bar. Each stop
| word is at the start of a line.
diff --git a/solr/example/example-schemaless/solr/collection1/conf/lang/stopwords_es.txt b/solr/example/example-schemaless/solr/collection1/conf/lang/stopwords_es.txt
index 2db14760075..487d78c8d56 100644
--- a/solr/example/example-schemaless/solr/collection1/conf/lang/stopwords_es.txt
+++ b/solr/example/example-schemaless/solr/collection1/conf/lang/stopwords_es.txt
@@ -4,6 +4,8 @@
| Also see http://www.opensource.org/licenses/bsd-license.html
| - Encoding was converted to UTF-8.
| - This notice was added.
+ |
+ | NOTE: To use this file with StopFilterFactory, you must specify format="snowball"
| A Spanish stop word list. Comments begin with vertical bar. Each stop
| word is at the start of a line.
diff --git a/solr/example/example-schemaless/solr/collection1/conf/lang/stopwords_fi.txt b/solr/example/example-schemaless/solr/collection1/conf/lang/stopwords_fi.txt
index addad798c4b..4372c9a055b 100644
--- a/solr/example/example-schemaless/solr/collection1/conf/lang/stopwords_fi.txt
+++ b/solr/example/example-schemaless/solr/collection1/conf/lang/stopwords_fi.txt
@@ -4,6 +4,8 @@
| Also see http://www.opensource.org/licenses/bsd-license.html
| - Encoding was converted to UTF-8.
| - This notice was added.
+ |
+ | NOTE: To use this file with StopFilterFactory, you must specify format="snowball"
| forms of BE
diff --git a/solr/example/example-schemaless/solr/collection1/conf/lang/stopwords_fr.txt b/solr/example/example-schemaless/solr/collection1/conf/lang/stopwords_fr.txt
index 20d12cb01e4..749abae6846 100644
--- a/solr/example/example-schemaless/solr/collection1/conf/lang/stopwords_fr.txt
+++ b/solr/example/example-schemaless/solr/collection1/conf/lang/stopwords_fr.txt
@@ -4,6 +4,8 @@
| Also see http://www.opensource.org/licenses/bsd-license.html
| - Encoding was converted to UTF-8.
| - This notice was added.
+ |
+ | NOTE: To use this file with StopFilterFactory, you must specify format="snowball"
| A French stop word list. Comments begin with vertical bar. Each stop
| word is at the start of a line.
diff --git a/solr/example/example-schemaless/solr/collection1/conf/lang/stopwords_hu.txt b/solr/example/example-schemaless/solr/collection1/conf/lang/stopwords_hu.txt
index 1a96f1db6f2..37526da8aa9 100644
--- a/solr/example/example-schemaless/solr/collection1/conf/lang/stopwords_hu.txt
+++ b/solr/example/example-schemaless/solr/collection1/conf/lang/stopwords_hu.txt
@@ -4,6 +4,8 @@
| Also see http://www.opensource.org/licenses/bsd-license.html
| - Encoding was converted to UTF-8.
| - This notice was added.
+ |
+ | NOTE: To use this file with StopFilterFactory, you must specify format="snowball"
| Hungarian stop word list
| prepared by Anna Tordai
diff --git a/solr/example/example-schemaless/solr/collection1/conf/lang/stopwords_it.txt b/solr/example/example-schemaless/solr/collection1/conf/lang/stopwords_it.txt
index 4cb5b0891b1..1219cc773ab 100644
--- a/solr/example/example-schemaless/solr/collection1/conf/lang/stopwords_it.txt
+++ b/solr/example/example-schemaless/solr/collection1/conf/lang/stopwords_it.txt
@@ -4,6 +4,8 @@
| Also see http://www.opensource.org/licenses/bsd-license.html
| - Encoding was converted to UTF-8.
| - This notice was added.
+ |
+ | NOTE: To use this file with StopFilterFactory, you must specify format="snowball"
| An Italian stop word list. Comments begin with vertical bar. Each stop
| word is at the start of a line.
diff --git a/solr/example/example-schemaless/solr/collection1/conf/lang/stopwords_nl.txt b/solr/example/example-schemaless/solr/collection1/conf/lang/stopwords_nl.txt
index f4d61f5092c..47a2aeacf6f 100644
--- a/solr/example/example-schemaless/solr/collection1/conf/lang/stopwords_nl.txt
+++ b/solr/example/example-schemaless/solr/collection1/conf/lang/stopwords_nl.txt
@@ -4,6 +4,8 @@
| Also see http://www.opensource.org/licenses/bsd-license.html
| - Encoding was converted to UTF-8.
| - This notice was added.
+ |
+ | NOTE: To use this file with StopFilterFactory, you must specify format="snowball"
| A Dutch stop word list. Comments begin with vertical bar. Each stop
| word is at the start of a line.
diff --git a/solr/example/example-schemaless/solr/collection1/conf/lang/stopwords_no.txt b/solr/example/example-schemaless/solr/collection1/conf/lang/stopwords_no.txt
index e76f36e69ed..a7a2c28ba54 100644
--- a/solr/example/example-schemaless/solr/collection1/conf/lang/stopwords_no.txt
+++ b/solr/example/example-schemaless/solr/collection1/conf/lang/stopwords_no.txt
@@ -4,6 +4,8 @@
| Also see http://www.opensource.org/licenses/bsd-license.html
| - Encoding was converted to UTF-8.
| - This notice was added.
+ |
+ | NOTE: To use this file with StopFilterFactory, you must specify format="snowball"
| A Norwegian stop word list. Comments begin with vertical bar. Each stop
| word is at the start of a line.
diff --git a/solr/example/example-schemaless/solr/collection1/conf/lang/stopwords_pt.txt b/solr/example/example-schemaless/solr/collection1/conf/lang/stopwords_pt.txt
index 276c1b446f2..acfeb01af6b 100644
--- a/solr/example/example-schemaless/solr/collection1/conf/lang/stopwords_pt.txt
+++ b/solr/example/example-schemaless/solr/collection1/conf/lang/stopwords_pt.txt
@@ -4,6 +4,8 @@
| Also see http://www.opensource.org/licenses/bsd-license.html
| - Encoding was converted to UTF-8.
| - This notice was added.
+ |
+ | NOTE: To use this file with StopFilterFactory, you must specify format="snowball"
| A Portuguese stop word list. Comments begin with vertical bar. Each stop
| word is at the start of a line.
diff --git a/solr/example/example-schemaless/solr/collection1/conf/lang/stopwords_ru.txt b/solr/example/example-schemaless/solr/collection1/conf/lang/stopwords_ru.txt
index 64307693457..55271400c64 100644
--- a/solr/example/example-schemaless/solr/collection1/conf/lang/stopwords_ru.txt
+++ b/solr/example/example-schemaless/solr/collection1/conf/lang/stopwords_ru.txt
@@ -4,6 +4,8 @@
| Also see http://www.opensource.org/licenses/bsd-license.html
| - Encoding was converted to UTF-8.
| - This notice was added.
+ |
+ | NOTE: To use this file with StopFilterFactory, you must specify format="snowball"
| a russian stop word list. comments begin with vertical bar. each stop
| word is at the start of a line.
diff --git a/solr/example/example-schemaless/solr/collection1/conf/lang/stopwords_sv.txt b/solr/example/example-schemaless/solr/collection1/conf/lang/stopwords_sv.txt
index 22bddfd8cb3..096f87f6766 100644
--- a/solr/example/example-schemaless/solr/collection1/conf/lang/stopwords_sv.txt
+++ b/solr/example/example-schemaless/solr/collection1/conf/lang/stopwords_sv.txt
@@ -4,6 +4,8 @@
| Also see http://www.opensource.org/licenses/bsd-license.html
| - Encoding was converted to UTF-8.
| - This notice was added.
+ |
+ | NOTE: To use this file with StopFilterFactory, you must specify format="snowball"
| A Swedish stop word list. Comments begin with vertical bar. Each stop
| word is at the start of a line.
diff --git a/solr/example/solr/collection1/conf/lang/stopwords_da.txt b/solr/example/solr/collection1/conf/lang/stopwords_da.txt
index a3ff5fe122c..42e6145b98e 100644
--- a/solr/example/solr/collection1/conf/lang/stopwords_da.txt
+++ b/solr/example/solr/collection1/conf/lang/stopwords_da.txt
@@ -4,6 +4,8 @@
| Also see http://www.opensource.org/licenses/bsd-license.html
| - Encoding was converted to UTF-8.
| - This notice was added.
+ |
+ | NOTE: To use this file with StopFilterFactory, you must specify format="snowball"
| A Danish stop word list. Comments begin with vertical bar. Each stop
| word is at the start of a line.
diff --git a/solr/example/solr/collection1/conf/lang/stopwords_de.txt b/solr/example/solr/collection1/conf/lang/stopwords_de.txt
index f7703841887..86525e7ae08 100644
--- a/solr/example/solr/collection1/conf/lang/stopwords_de.txt
+++ b/solr/example/solr/collection1/conf/lang/stopwords_de.txt
@@ -4,6 +4,8 @@
| Also see http://www.opensource.org/licenses/bsd-license.html
| - Encoding was converted to UTF-8.
| - This notice was added.
+ |
+ | NOTE: To use this file with StopFilterFactory, you must specify format="snowball"
| A German stop word list. Comments begin with vertical bar. Each stop
| word is at the start of a line.
diff --git a/solr/example/solr/collection1/conf/lang/stopwords_es.txt b/solr/example/solr/collection1/conf/lang/stopwords_es.txt
index 2db14760075..487d78c8d56 100644
--- a/solr/example/solr/collection1/conf/lang/stopwords_es.txt
+++ b/solr/example/solr/collection1/conf/lang/stopwords_es.txt
@@ -4,6 +4,8 @@
| Also see http://www.opensource.org/licenses/bsd-license.html
| - Encoding was converted to UTF-8.
| - This notice was added.
+ |
+ | NOTE: To use this file with StopFilterFactory, you must specify format="snowball"
| A Spanish stop word list. Comments begin with vertical bar. Each stop
| word is at the start of a line.
diff --git a/solr/example/solr/collection1/conf/lang/stopwords_fi.txt b/solr/example/solr/collection1/conf/lang/stopwords_fi.txt
index addad798c4b..4372c9a055b 100644
--- a/solr/example/solr/collection1/conf/lang/stopwords_fi.txt
+++ b/solr/example/solr/collection1/conf/lang/stopwords_fi.txt
@@ -4,6 +4,8 @@
| Also see http://www.opensource.org/licenses/bsd-license.html
| - Encoding was converted to UTF-8.
| - This notice was added.
+ |
+ | NOTE: To use this file with StopFilterFactory, you must specify format="snowball"
| forms of BE
diff --git a/solr/example/solr/collection1/conf/lang/stopwords_fr.txt b/solr/example/solr/collection1/conf/lang/stopwords_fr.txt
index 20d12cb01e4..749abae6846 100644
--- a/solr/example/solr/collection1/conf/lang/stopwords_fr.txt
+++ b/solr/example/solr/collection1/conf/lang/stopwords_fr.txt
@@ -4,6 +4,8 @@
| Also see http://www.opensource.org/licenses/bsd-license.html
| - Encoding was converted to UTF-8.
| - This notice was added.
+ |
+ | NOTE: To use this file with StopFilterFactory, you must specify format="snowball"
| A French stop word list. Comments begin with vertical bar. Each stop
| word is at the start of a line.
diff --git a/solr/example/solr/collection1/conf/lang/stopwords_hu.txt b/solr/example/solr/collection1/conf/lang/stopwords_hu.txt
index 1a96f1db6f2..37526da8aa9 100644
--- a/solr/example/solr/collection1/conf/lang/stopwords_hu.txt
+++ b/solr/example/solr/collection1/conf/lang/stopwords_hu.txt
@@ -4,6 +4,8 @@
| Also see http://www.opensource.org/licenses/bsd-license.html
| - Encoding was converted to UTF-8.
| - This notice was added.
+ |
+ | NOTE: To use this file with StopFilterFactory, you must specify format="snowball"
| Hungarian stop word list
| prepared by Anna Tordai
diff --git a/solr/example/solr/collection1/conf/lang/stopwords_it.txt b/solr/example/solr/collection1/conf/lang/stopwords_it.txt
index 4cb5b0891b1..1219cc773ab 100644
--- a/solr/example/solr/collection1/conf/lang/stopwords_it.txt
+++ b/solr/example/solr/collection1/conf/lang/stopwords_it.txt
@@ -4,6 +4,8 @@
| Also see http://www.opensource.org/licenses/bsd-license.html
| - Encoding was converted to UTF-8.
| - This notice was added.
+ |
+ | NOTE: To use this file with StopFilterFactory, you must specify format="snowball"
| An Italian stop word list. Comments begin with vertical bar. Each stop
| word is at the start of a line.
diff --git a/solr/example/solr/collection1/conf/lang/stopwords_nl.txt b/solr/example/solr/collection1/conf/lang/stopwords_nl.txt
index f4d61f5092c..47a2aeacf6f 100644
--- a/solr/example/solr/collection1/conf/lang/stopwords_nl.txt
+++ b/solr/example/solr/collection1/conf/lang/stopwords_nl.txt
@@ -4,6 +4,8 @@
| Also see http://www.opensource.org/licenses/bsd-license.html
| - Encoding was converted to UTF-8.
| - This notice was added.
+ |
+ | NOTE: To use this file with StopFilterFactory, you must specify format="snowball"
| A Dutch stop word list. Comments begin with vertical bar. Each stop
| word is at the start of a line.
diff --git a/solr/example/solr/collection1/conf/lang/stopwords_no.txt b/solr/example/solr/collection1/conf/lang/stopwords_no.txt
index e76f36e69ed..a7a2c28ba54 100644
--- a/solr/example/solr/collection1/conf/lang/stopwords_no.txt
+++ b/solr/example/solr/collection1/conf/lang/stopwords_no.txt
@@ -4,6 +4,8 @@
| Also see http://www.opensource.org/licenses/bsd-license.html
| - Encoding was converted to UTF-8.
| - This notice was added.
+ |
+ | NOTE: To use this file with StopFilterFactory, you must specify format="snowball"
| A Norwegian stop word list. Comments begin with vertical bar. Each stop
| word is at the start of a line.
diff --git a/solr/example/solr/collection1/conf/lang/stopwords_pt.txt b/solr/example/solr/collection1/conf/lang/stopwords_pt.txt
index 276c1b446f2..acfeb01af6b 100644
--- a/solr/example/solr/collection1/conf/lang/stopwords_pt.txt
+++ b/solr/example/solr/collection1/conf/lang/stopwords_pt.txt
@@ -4,6 +4,8 @@
| Also see http://www.opensource.org/licenses/bsd-license.html
| - Encoding was converted to UTF-8.
| - This notice was added.
+ |
+ | NOTE: To use this file with StopFilterFactory, you must specify format="snowball"
| A Portuguese stop word list. Comments begin with vertical bar. Each stop
| word is at the start of a line.
diff --git a/solr/example/solr/collection1/conf/lang/stopwords_ru.txt b/solr/example/solr/collection1/conf/lang/stopwords_ru.txt
index 64307693457..55271400c64 100644
--- a/solr/example/solr/collection1/conf/lang/stopwords_ru.txt
+++ b/solr/example/solr/collection1/conf/lang/stopwords_ru.txt
@@ -4,6 +4,8 @@
| Also see http://www.opensource.org/licenses/bsd-license.html
| - Encoding was converted to UTF-8.
| - This notice was added.
+ |
+ | NOTE: To use this file with StopFilterFactory, you must specify format="snowball"
| a russian stop word list. comments begin with vertical bar. each stop
| word is at the start of a line.
diff --git a/solr/example/solr/collection1/conf/lang/stopwords_sv.txt b/solr/example/solr/collection1/conf/lang/stopwords_sv.txt
index 22bddfd8cb3..096f87f6766 100644
--- a/solr/example/solr/collection1/conf/lang/stopwords_sv.txt
+++ b/solr/example/solr/collection1/conf/lang/stopwords_sv.txt
@@ -4,6 +4,8 @@
| Also see http://www.opensource.org/licenses/bsd-license.html
| - Encoding was converted to UTF-8.
| - This notice was added.
+ |
+ | NOTE: To use this file with StopFilterFactory, you must specify format="snowball"
| A Swedish stop word list. Comments begin with vertical bar. Each stop
| word is at the start of a line.