diff --git a/NOTICE.txt b/NOTICE.txt
index 1e1bac2c2d2..0c7b8a3293f 100644
--- a/NOTICE.txt
+++ b/NOTICE.txt
@@ -5,10 +5,10 @@ This product includes software developed by
The Apache Software Foundation (http://www.apache.org/).
The snowball stemmers in
- contrib/snowball/src/java/net/sf/snowball
+ contrib/analyzers/common/src/java/net/sf/snowball
were developed by Martin Porter and Richard Boulton.
The snowball stopword lists in
- contrib/snowball/src/resources/org/apache/lucene/analysis/snowball
+ contrib/analyzers/common/src/resources/org/apache/lucene/analysis/snowball
were developed by Martin Porter and Richard Boulton.
The full snowball package is available from
http://snowball.tartarus.org/
diff --git a/README.txt b/README.txt
index 721ba19a24f..d38f07b5b79 100644
--- a/README.txt
+++ b/README.txt
@@ -25,7 +25,7 @@ luceneweb.war
contrib/*
Contributed code which extends and enhances Lucene, but is not
- part of the core library. Of special note are the JAR files in the analyzers and snowball directory which
+ part of the core library. Of special note are the JAR files in the analyzers directory which
contain various analyzers that people may find useful in place of the StandardAnalyzer.
diff --git a/contrib/CHANGES.txt b/contrib/CHANGES.txt
index b360b66ad94..416149cb02c 100644
--- a/contrib/CHANGES.txt
+++ b/contrib/CHANGES.txt
@@ -15,6 +15,10 @@ Changes in backwards compatibility policy
preserved, but some protected/public member variables changed type. This
does NOT affect java code/class files produced by the snowball compiler,
but technically is a backwards compatibility break. (Robert Muir)
+
+ * LUCENE-2226: Moved contrib/snowball functionality into contrib/analyzers.
+ Be sure to remove any old obselete lucene-snowball jar files from your
+ classpath! (Robert Muir)
Changes in runtime behavior
@@ -94,14 +98,10 @@ New features
Build
- * LUCENE-2117: SnowballAnalyzer now holds a runtime-dependency on
- contrib-analyzers to correctly handle the unique Turkish casing behavior.
- (Robert Muir via Simon Willnauer)
-
* LUCENE-2124: Moved the JDK-based collation support from contrib/collation
into core, and moved the ICU-based collation support into contrib/icu.
(Steven Rowe, Robert Muir)
-
+
Optimizations
* LUCENE-2157: DelimitedPayloadTokenFilter no longer copies the buffer
diff --git a/contrib/snowball/README.txt b/contrib/analyzers/common/README.txt
similarity index 96%
rename from contrib/snowball/README.txt
rename to contrib/analyzers/common/README.txt
index 06bc451db99..f4338a4df40 100644
--- a/contrib/snowball/README.txt
+++ b/contrib/analyzers/common/README.txt
@@ -1,4 +1,4 @@
-Lucene Snowball README file
+Lucene Contrib Analyzers README file
This project provides pre-compiled version of the Snowball stemmers
based on revision 500 of the Tartarus Snowball repository,
diff --git a/contrib/snowball/SNOWBALL-LICENSE.txt b/contrib/analyzers/common/SNOWBALL-LICENSE.txt
similarity index 100%
rename from contrib/snowball/SNOWBALL-LICENSE.txt
rename to contrib/analyzers/common/SNOWBALL-LICENSE.txt
diff --git a/contrib/analyzers/common/build.xml b/contrib/analyzers/common/build.xml
index a59f32d141c..6f8555c9e96 100644
--- a/contrib/analyzers/common/build.xml
+++ b/contrib/analyzers/common/build.xml
@@ -35,4 +35,20 @@
-Lucene Snowball README file -
- +{@link org.apache.lucene.analysis.TokenFilter} and {@link +org.apache.lucene.analysis.Analyzer} implementations that use Snowball +stemmers.
This project provides pre-compiled version of the Snowball stemmers
based on revision 500 of the Tartarus Snowball repository,
diff --git a/contrib/snowball/src/java/org/tartarus/snowball/Among.java b/contrib/analyzers/common/src/java/org/tartarus/snowball/Among.java
similarity index 100%
rename from contrib/snowball/src/java/org/tartarus/snowball/Among.java
rename to contrib/analyzers/common/src/java/org/tartarus/snowball/Among.java
diff --git a/contrib/snowball/src/java/org/tartarus/snowball/SnowballProgram.java b/contrib/analyzers/common/src/java/org/tartarus/snowball/SnowballProgram.java
similarity index 100%
rename from contrib/snowball/src/java/org/tartarus/snowball/SnowballProgram.java
rename to contrib/analyzers/common/src/java/org/tartarus/snowball/SnowballProgram.java
diff --git a/contrib/snowball/src/java/org/tartarus/snowball/TestApp.java b/contrib/analyzers/common/src/java/org/tartarus/snowball/TestApp.java
similarity index 100%
rename from contrib/snowball/src/java/org/tartarus/snowball/TestApp.java
rename to contrib/analyzers/common/src/java/org/tartarus/snowball/TestApp.java
diff --git a/contrib/snowball/src/java/org/tartarus/snowball/ext/DanishStemmer.java b/contrib/analyzers/common/src/java/org/tartarus/snowball/ext/DanishStemmer.java
similarity index 100%
rename from contrib/snowball/src/java/org/tartarus/snowball/ext/DanishStemmer.java
rename to contrib/analyzers/common/src/java/org/tartarus/snowball/ext/DanishStemmer.java
diff --git a/contrib/snowball/src/java/org/tartarus/snowball/ext/DutchStemmer.java b/contrib/analyzers/common/src/java/org/tartarus/snowball/ext/DutchStemmer.java
similarity index 100%
rename from contrib/snowball/src/java/org/tartarus/snowball/ext/DutchStemmer.java
rename to contrib/analyzers/common/src/java/org/tartarus/snowball/ext/DutchStemmer.java
diff --git a/contrib/snowball/src/java/org/tartarus/snowball/ext/EnglishStemmer.java b/contrib/analyzers/common/src/java/org/tartarus/snowball/ext/EnglishStemmer.java
similarity index 100%
rename from contrib/snowball/src/java/org/tartarus/snowball/ext/EnglishStemmer.java
rename to contrib/analyzers/common/src/java/org/tartarus/snowball/ext/EnglishStemmer.java
diff --git a/contrib/snowball/src/java/org/tartarus/snowball/ext/FinnishStemmer.java b/contrib/analyzers/common/src/java/org/tartarus/snowball/ext/FinnishStemmer.java
similarity index 100%
rename from contrib/snowball/src/java/org/tartarus/snowball/ext/FinnishStemmer.java
rename to contrib/analyzers/common/src/java/org/tartarus/snowball/ext/FinnishStemmer.java
diff --git a/contrib/snowball/src/java/org/tartarus/snowball/ext/FrenchStemmer.java b/contrib/analyzers/common/src/java/org/tartarus/snowball/ext/FrenchStemmer.java
similarity index 100%
rename from contrib/snowball/src/java/org/tartarus/snowball/ext/FrenchStemmer.java
rename to contrib/analyzers/common/src/java/org/tartarus/snowball/ext/FrenchStemmer.java
diff --git a/contrib/snowball/src/java/org/tartarus/snowball/ext/German2Stemmer.java b/contrib/analyzers/common/src/java/org/tartarus/snowball/ext/German2Stemmer.java
similarity index 100%
rename from contrib/snowball/src/java/org/tartarus/snowball/ext/German2Stemmer.java
rename to contrib/analyzers/common/src/java/org/tartarus/snowball/ext/German2Stemmer.java
diff --git a/contrib/snowball/src/java/org/tartarus/snowball/ext/GermanStemmer.java b/contrib/analyzers/common/src/java/org/tartarus/snowball/ext/GermanStemmer.java
similarity index 100%
rename from contrib/snowball/src/java/org/tartarus/snowball/ext/GermanStemmer.java
rename to contrib/analyzers/common/src/java/org/tartarus/snowball/ext/GermanStemmer.java
diff --git a/contrib/snowball/src/java/org/tartarus/snowball/ext/HungarianStemmer.java b/contrib/analyzers/common/src/java/org/tartarus/snowball/ext/HungarianStemmer.java
similarity index 100%
rename from contrib/snowball/src/java/org/tartarus/snowball/ext/HungarianStemmer.java
rename to contrib/analyzers/common/src/java/org/tartarus/snowball/ext/HungarianStemmer.java
diff --git a/contrib/snowball/src/java/org/tartarus/snowball/ext/ItalianStemmer.java b/contrib/analyzers/common/src/java/org/tartarus/snowball/ext/ItalianStemmer.java
similarity index 100%
rename from contrib/snowball/src/java/org/tartarus/snowball/ext/ItalianStemmer.java
rename to contrib/analyzers/common/src/java/org/tartarus/snowball/ext/ItalianStemmer.java
diff --git a/contrib/snowball/src/java/org/tartarus/snowball/ext/KpStemmer.java b/contrib/analyzers/common/src/java/org/tartarus/snowball/ext/KpStemmer.java
similarity index 100%
rename from contrib/snowball/src/java/org/tartarus/snowball/ext/KpStemmer.java
rename to contrib/analyzers/common/src/java/org/tartarus/snowball/ext/KpStemmer.java
diff --git a/contrib/snowball/src/java/org/tartarus/snowball/ext/LovinsStemmer.java b/contrib/analyzers/common/src/java/org/tartarus/snowball/ext/LovinsStemmer.java
similarity index 100%
rename from contrib/snowball/src/java/org/tartarus/snowball/ext/LovinsStemmer.java
rename to contrib/analyzers/common/src/java/org/tartarus/snowball/ext/LovinsStemmer.java
diff --git a/contrib/snowball/src/java/org/tartarus/snowball/ext/NorwegianStemmer.java b/contrib/analyzers/common/src/java/org/tartarus/snowball/ext/NorwegianStemmer.java
similarity index 100%
rename from contrib/snowball/src/java/org/tartarus/snowball/ext/NorwegianStemmer.java
rename to contrib/analyzers/common/src/java/org/tartarus/snowball/ext/NorwegianStemmer.java
diff --git a/contrib/snowball/src/java/org/tartarus/snowball/ext/PorterStemmer.java b/contrib/analyzers/common/src/java/org/tartarus/snowball/ext/PorterStemmer.java
similarity index 100%
rename from contrib/snowball/src/java/org/tartarus/snowball/ext/PorterStemmer.java
rename to contrib/analyzers/common/src/java/org/tartarus/snowball/ext/PorterStemmer.java
diff --git a/contrib/snowball/src/java/org/tartarus/snowball/ext/PortugueseStemmer.java b/contrib/analyzers/common/src/java/org/tartarus/snowball/ext/PortugueseStemmer.java
similarity index 100%
rename from contrib/snowball/src/java/org/tartarus/snowball/ext/PortugueseStemmer.java
rename to contrib/analyzers/common/src/java/org/tartarus/snowball/ext/PortugueseStemmer.java
diff --git a/contrib/snowball/src/java/org/tartarus/snowball/ext/RomanianStemmer.java b/contrib/analyzers/common/src/java/org/tartarus/snowball/ext/RomanianStemmer.java
similarity index 100%
rename from contrib/snowball/src/java/org/tartarus/snowball/ext/RomanianStemmer.java
rename to contrib/analyzers/common/src/java/org/tartarus/snowball/ext/RomanianStemmer.java
diff --git a/contrib/snowball/src/java/org/tartarus/snowball/ext/RussianStemmer.java b/contrib/analyzers/common/src/java/org/tartarus/snowball/ext/RussianStemmer.java
similarity index 100%
rename from contrib/snowball/src/java/org/tartarus/snowball/ext/RussianStemmer.java
rename to contrib/analyzers/common/src/java/org/tartarus/snowball/ext/RussianStemmer.java
diff --git a/contrib/snowball/src/java/org/tartarus/snowball/ext/SpanishStemmer.java b/contrib/analyzers/common/src/java/org/tartarus/snowball/ext/SpanishStemmer.java
similarity index 100%
rename from contrib/snowball/src/java/org/tartarus/snowball/ext/SpanishStemmer.java
rename to contrib/analyzers/common/src/java/org/tartarus/snowball/ext/SpanishStemmer.java
diff --git a/contrib/snowball/src/java/org/tartarus/snowball/ext/SwedishStemmer.java b/contrib/analyzers/common/src/java/org/tartarus/snowball/ext/SwedishStemmer.java
similarity index 100%
rename from contrib/snowball/src/java/org/tartarus/snowball/ext/SwedishStemmer.java
rename to contrib/analyzers/common/src/java/org/tartarus/snowball/ext/SwedishStemmer.java
diff --git a/contrib/snowball/src/java/org/tartarus/snowball/ext/TurkishStemmer.java b/contrib/analyzers/common/src/java/org/tartarus/snowball/ext/TurkishStemmer.java
similarity index 100%
rename from contrib/snowball/src/java/org/tartarus/snowball/ext/TurkishStemmer.java
rename to contrib/analyzers/common/src/java/org/tartarus/snowball/ext/TurkishStemmer.java
diff --git a/contrib/snowball/src/resources/org/apache/lucene/analysis/snowball/danish_stop.txt b/contrib/analyzers/common/src/resources/org/apache/lucene/analysis/snowball/danish_stop.txt
similarity index 100%
rename from contrib/snowball/src/resources/org/apache/lucene/analysis/snowball/danish_stop.txt
rename to contrib/analyzers/common/src/resources/org/apache/lucene/analysis/snowball/danish_stop.txt
diff --git a/contrib/snowball/src/resources/org/apache/lucene/analysis/snowball/dutch_stop.txt b/contrib/analyzers/common/src/resources/org/apache/lucene/analysis/snowball/dutch_stop.txt
similarity index 100%
rename from contrib/snowball/src/resources/org/apache/lucene/analysis/snowball/dutch_stop.txt
rename to contrib/analyzers/common/src/resources/org/apache/lucene/analysis/snowball/dutch_stop.txt
diff --git a/contrib/snowball/src/resources/org/apache/lucene/analysis/snowball/english_stop.txt b/contrib/analyzers/common/src/resources/org/apache/lucene/analysis/snowball/english_stop.txt
similarity index 100%
rename from contrib/snowball/src/resources/org/apache/lucene/analysis/snowball/english_stop.txt
rename to contrib/analyzers/common/src/resources/org/apache/lucene/analysis/snowball/english_stop.txt
diff --git a/contrib/snowball/src/resources/org/apache/lucene/analysis/snowball/finnish_stop.txt b/contrib/analyzers/common/src/resources/org/apache/lucene/analysis/snowball/finnish_stop.txt
similarity index 100%
rename from contrib/snowball/src/resources/org/apache/lucene/analysis/snowball/finnish_stop.txt
rename to contrib/analyzers/common/src/resources/org/apache/lucene/analysis/snowball/finnish_stop.txt
diff --git a/contrib/snowball/src/resources/org/apache/lucene/analysis/snowball/french_stop.txt b/contrib/analyzers/common/src/resources/org/apache/lucene/analysis/snowball/french_stop.txt
similarity index 100%
rename from contrib/snowball/src/resources/org/apache/lucene/analysis/snowball/french_stop.txt
rename to contrib/analyzers/common/src/resources/org/apache/lucene/analysis/snowball/french_stop.txt
diff --git a/contrib/snowball/src/resources/org/apache/lucene/analysis/snowball/german_stop.txt b/contrib/analyzers/common/src/resources/org/apache/lucene/analysis/snowball/german_stop.txt
similarity index 100%
rename from contrib/snowball/src/resources/org/apache/lucene/analysis/snowball/german_stop.txt
rename to contrib/analyzers/common/src/resources/org/apache/lucene/analysis/snowball/german_stop.txt
diff --git a/contrib/snowball/src/resources/org/apache/lucene/analysis/snowball/hungarian_stop.txt b/contrib/analyzers/common/src/resources/org/apache/lucene/analysis/snowball/hungarian_stop.txt
similarity index 100%
rename from contrib/snowball/src/resources/org/apache/lucene/analysis/snowball/hungarian_stop.txt
rename to contrib/analyzers/common/src/resources/org/apache/lucene/analysis/snowball/hungarian_stop.txt
diff --git a/contrib/snowball/src/resources/org/apache/lucene/analysis/snowball/italian_stop.txt b/contrib/analyzers/common/src/resources/org/apache/lucene/analysis/snowball/italian_stop.txt
similarity index 100%
rename from contrib/snowball/src/resources/org/apache/lucene/analysis/snowball/italian_stop.txt
rename to contrib/analyzers/common/src/resources/org/apache/lucene/analysis/snowball/italian_stop.txt
diff --git a/contrib/snowball/src/resources/org/apache/lucene/analysis/snowball/norwegian_stop.txt b/contrib/analyzers/common/src/resources/org/apache/lucene/analysis/snowball/norwegian_stop.txt
similarity index 100%
rename from contrib/snowball/src/resources/org/apache/lucene/analysis/snowball/norwegian_stop.txt
rename to contrib/analyzers/common/src/resources/org/apache/lucene/analysis/snowball/norwegian_stop.txt
diff --git a/contrib/snowball/src/resources/org/apache/lucene/analysis/snowball/portuguese_stop.txt b/contrib/analyzers/common/src/resources/org/apache/lucene/analysis/snowball/portuguese_stop.txt
similarity index 100%
rename from contrib/snowball/src/resources/org/apache/lucene/analysis/snowball/portuguese_stop.txt
rename to contrib/analyzers/common/src/resources/org/apache/lucene/analysis/snowball/portuguese_stop.txt
diff --git a/contrib/snowball/src/resources/org/apache/lucene/analysis/snowball/russian_stop.txt b/contrib/analyzers/common/src/resources/org/apache/lucene/analysis/snowball/russian_stop.txt
similarity index 100%
rename from contrib/snowball/src/resources/org/apache/lucene/analysis/snowball/russian_stop.txt
rename to contrib/analyzers/common/src/resources/org/apache/lucene/analysis/snowball/russian_stop.txt
diff --git a/contrib/snowball/src/resources/org/apache/lucene/analysis/snowball/spanish_stop.txt b/contrib/analyzers/common/src/resources/org/apache/lucene/analysis/snowball/spanish_stop.txt
similarity index 100%
rename from contrib/snowball/src/resources/org/apache/lucene/analysis/snowball/spanish_stop.txt
rename to contrib/analyzers/common/src/resources/org/apache/lucene/analysis/snowball/spanish_stop.txt
diff --git a/contrib/snowball/src/resources/org/apache/lucene/analysis/snowball/swedish_stop.txt b/contrib/analyzers/common/src/resources/org/apache/lucene/analysis/snowball/swedish_stop.txt
similarity index 100%
rename from contrib/snowball/src/resources/org/apache/lucene/analysis/snowball/swedish_stop.txt
rename to contrib/analyzers/common/src/resources/org/apache/lucene/analysis/snowball/swedish_stop.txt
diff --git a/contrib/snowball/src/test/org/apache/lucene/analysis/snowball/TestSnowball.java b/contrib/analyzers/common/src/test/org/apache/lucene/analysis/snowball/TestSnowball.java
similarity index 100%
rename from contrib/snowball/src/test/org/apache/lucene/analysis/snowball/TestSnowball.java
rename to contrib/analyzers/common/src/test/org/apache/lucene/analysis/snowball/TestSnowball.java
diff --git a/contrib/snowball/src/test/org/apache/lucene/analysis/snowball/TestSnowballVocab.java b/contrib/analyzers/common/src/test/org/apache/lucene/analysis/snowball/TestSnowballVocab.java
similarity index 100%
rename from contrib/snowball/src/test/org/apache/lucene/analysis/snowball/TestSnowballVocab.java
rename to contrib/analyzers/common/src/test/org/apache/lucene/analysis/snowball/TestSnowballVocab.java
diff --git a/contrib/snowball/.cvsignore b/contrib/snowball/.cvsignore
deleted file mode 100644
index 4184133fa5b..00000000000
--- a/contrib/snowball/.cvsignore
+++ /dev/null
@@ -1,2 +0,0 @@
-build
-snowball
diff --git a/contrib/snowball/LICENSE.txt b/contrib/snowball/LICENSE.txt
deleted file mode 100644
index 8c563ab525d..00000000000
--- a/contrib/snowball/LICENSE.txt
+++ /dev/null
@@ -1,16 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
diff --git a/contrib/snowball/bin/.cvsignore b/contrib/snowball/bin/.cvsignore
deleted file mode 100644
index 6a1f952e1ba..00000000000
--- a/contrib/snowball/bin/.cvsignore
+++ /dev/null
@@ -1 +0,0 @@
-snowball
diff --git a/contrib/snowball/bin/snowball.sh b/contrib/snowball/bin/snowball.sh
deleted file mode 100755
index ccce879d6af..00000000000
--- a/contrib/snowball/bin/snowball.sh
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/csh -f
-set infile = $1
-set outdir = $2
-
-set name = $infile:h:t:uStemmer
-
-exec $0:h/snowball $infile -o $outdir/$name -n $name -java
diff --git a/contrib/snowball/build.xml b/contrib/snowball/build.xml
deleted file mode 100644
index e23fd642a35..00000000000
--- a/contrib/snowball/build.xml
+++ /dev/null
@@ -1,155 +0,0 @@
-
-
-
-
-
- - | -
- - | |||||||
-
-
-
- Documentation -
Download -
Links -
Jakarta -
|
-
-
|
- ||||||
- - | |||||||
-
- Copyright © 1999-2004, The Apache Software Foundation
-
- |
-This project provides pre-compiled version of the Snowball stemmers -together with classes integrating them with the Lucene search engine. -
-