diff --git a/modules/analysis/common/src/java/org/apache/lucene/analysis/ca/CatalanAnalyzer.java b/modules/analysis/common/src/java/org/apache/lucene/analysis/ca/CatalanAnalyzer.java index 993fcd66281..94e18b24e28 100644 --- a/modules/analysis/common/src/java/org/apache/lucene/analysis/ca/CatalanAnalyzer.java +++ b/modules/analysis/common/src/java/org/apache/lucene/analysis/ca/CatalanAnalyzer.java @@ -119,7 +119,7 @@ public final class CatalanAnalyzer extends StopwordAnalyzerBase { protected TokenStreamComponents createComponents(String fieldName, Reader reader) { final Tokenizer source = new StandardTokenizer(matchVersion, reader); - TokenStream result = new StandardFilter(source); + TokenStream result = new StandardFilter(matchVersion, source); result = new LowerCaseFilter(matchVersion, result); result = new StopFilter(matchVersion, result, stopwords); if(!stemExclusionSet.isEmpty()) diff --git a/modules/analysis/common/src/java/org/apache/lucene/analysis/eu/BasqueAnalyzer.java b/modules/analysis/common/src/java/org/apache/lucene/analysis/eu/BasqueAnalyzer.java index 69004c7342f..a587abc5a45 100644 --- a/modules/analysis/common/src/java/org/apache/lucene/analysis/eu/BasqueAnalyzer.java +++ b/modules/analysis/common/src/java/org/apache/lucene/analysis/eu/BasqueAnalyzer.java @@ -119,7 +119,7 @@ public final class BasqueAnalyzer extends StopwordAnalyzerBase { protected TokenStreamComponents createComponents(String fieldName, Reader reader) { final Tokenizer source = new StandardTokenizer(matchVersion, reader); - TokenStream result = new StandardFilter(source); + TokenStream result = new StandardFilter(matchVersion, source); result = new LowerCaseFilter(matchVersion, result); result = new StopFilter(matchVersion, result, stopwords); if(!stemExclusionSet.isEmpty()) diff --git a/modules/analysis/common/src/java/org/apache/lucene/analysis/hy/ArmenianAnalyzer.java b/modules/analysis/common/src/java/org/apache/lucene/analysis/hy/ArmenianAnalyzer.java index 38e57f558f0..1cc876a4907 100644 --- a/modules/analysis/common/src/java/org/apache/lucene/analysis/hy/ArmenianAnalyzer.java +++ b/modules/analysis/common/src/java/org/apache/lucene/analysis/hy/ArmenianAnalyzer.java @@ -119,7 +119,7 @@ public final class ArmenianAnalyzer extends StopwordAnalyzerBase { protected TokenStreamComponents createComponents(String fieldName, Reader reader) { final Tokenizer source = new StandardTokenizer(matchVersion, reader); - TokenStream result = new StandardFilter(source); + TokenStream result = new StandardFilter(matchVersion, source); result = new LowerCaseFilter(matchVersion, result); result = new StopFilter(matchVersion, result, stopwords); if(!stemExclusionSet.isEmpty()) diff --git a/modules/analysis/common/src/java/org/apache/lucene/analysis/standard/StandardFilter.java b/modules/analysis/common/src/java/org/apache/lucene/analysis/standard/StandardFilter.java index 2150c92ac2f..7eeb87c51ee 100644 --- a/modules/analysis/common/src/java/org/apache/lucene/analysis/standard/StandardFilter.java +++ b/modules/analysis/common/src/java/org/apache/lucene/analysis/standard/StandardFilter.java @@ -31,6 +31,8 @@ import org.apache.lucene.util.Version; public class StandardFilter extends TokenFilter { private final Version matchVersion; + /** @deprecated Use {@link #StandardFilter(Version, TokenStream)} instead. */ + @Deprecated public StandardFilter(TokenStream in) { this(Version.LUCENE_30, in); } diff --git a/modules/analysis/stempel/src/java/org/apache/lucene/analysis/pl/PolishAnalyzer.java b/modules/analysis/stempel/src/java/org/apache/lucene/analysis/pl/PolishAnalyzer.java index 399c6747b87..30396be310d 100644 --- a/modules/analysis/stempel/src/java/org/apache/lucene/analysis/pl/PolishAnalyzer.java +++ b/modules/analysis/stempel/src/java/org/apache/lucene/analysis/pl/PolishAnalyzer.java @@ -143,7 +143,7 @@ public final class PolishAnalyzer extends StopwordAnalyzerBase { protected TokenStreamComponents createComponents(String fieldName, Reader reader) { final Tokenizer source = new StandardTokenizer(matchVersion, reader); - TokenStream result = new StandardFilter(source); + TokenStream result = new StandardFilter(matchVersion, source); result = new LowerCaseFilter(matchVersion, result); result = new StopFilter(matchVersion, result, stopwords); if(!stemExclusionSet.isEmpty())