diff --git a/src/java/org/apache/lucene/analysis/de/GermanAnalyzer.java b/src/java/org/apache/lucene/analysis/de/GermanAnalyzer.java index 997acd2d26a..6dd4d0cd56f 100644 --- a/src/java/org/apache/lucene/analysis/de/GermanAnalyzer.java +++ b/src/java/org/apache/lucene/analysis/de/GermanAnalyzer.java @@ -169,7 +169,8 @@ public class GermanAnalyzer extends Analyzer { TokenStream result = new StandardTokenizer( reader ); result = new StandardFilter( result ); - result = new StopFilter( result, stoptable ); + // shouldn't there be a lowercaser before stop word filtering? + result = new StopFilter( result, stoptable ); result = new GermanStemFilter( result, excltable ); return result; } diff --git a/src/java/org/apache/lucene/analysis/de/GermanStemmer.java b/src/java/org/apache/lucene/analysis/de/GermanStemmer.java index 3260aee3404..dd4ec0b2ac2 100644 --- a/src/java/org/apache/lucene/analysis/de/GermanStemmer.java +++ b/src/java/org/apache/lucene/analysis/de/GermanStemmer.java @@ -165,8 +165,6 @@ public class GermanStemmer /** * Does some optimizations on the term. This optimisations are * contextual. - * - * @return The term with the optimizations applied. */ private void optimize( StringBuffer buffer ) {