LUCENE-2167: cut over these analyzers also

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1002221 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2010-09-28 15:33:22 +00:00
parent dfed16f2fd
commit f5031a6b27
5 changed files with 6 additions and 4 deletions

View File

@ -119,7 +119,7 @@ public final class CatalanAnalyzer extends StopwordAnalyzerBase {
protected TokenStreamComponents createComponents(String fieldName, protected TokenStreamComponents createComponents(String fieldName,
Reader reader) { Reader reader) {
final Tokenizer source = new StandardTokenizer(matchVersion, 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 LowerCaseFilter(matchVersion, result);
result = new StopFilter(matchVersion, result, stopwords); result = new StopFilter(matchVersion, result, stopwords);
if(!stemExclusionSet.isEmpty()) if(!stemExclusionSet.isEmpty())

View File

@ -119,7 +119,7 @@ public final class BasqueAnalyzer extends StopwordAnalyzerBase {
protected TokenStreamComponents createComponents(String fieldName, protected TokenStreamComponents createComponents(String fieldName,
Reader reader) { Reader reader) {
final Tokenizer source = new StandardTokenizer(matchVersion, 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 LowerCaseFilter(matchVersion, result);
result = new StopFilter(matchVersion, result, stopwords); result = new StopFilter(matchVersion, result, stopwords);
if(!stemExclusionSet.isEmpty()) if(!stemExclusionSet.isEmpty())

View File

@ -119,7 +119,7 @@ public final class ArmenianAnalyzer extends StopwordAnalyzerBase {
protected TokenStreamComponents createComponents(String fieldName, protected TokenStreamComponents createComponents(String fieldName,
Reader reader) { Reader reader) {
final Tokenizer source = new StandardTokenizer(matchVersion, 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 LowerCaseFilter(matchVersion, result);
result = new StopFilter(matchVersion, result, stopwords); result = new StopFilter(matchVersion, result, stopwords);
if(!stemExclusionSet.isEmpty()) if(!stemExclusionSet.isEmpty())

View File

@ -31,6 +31,8 @@ import org.apache.lucene.util.Version;
public class StandardFilter extends TokenFilter { public class StandardFilter extends TokenFilter {
private final Version matchVersion; private final Version matchVersion;
/** @deprecated Use {@link #StandardFilter(Version, TokenStream)} instead. */
@Deprecated
public StandardFilter(TokenStream in) { public StandardFilter(TokenStream in) {
this(Version.LUCENE_30, in); this(Version.LUCENE_30, in);
} }

View File

@ -143,7 +143,7 @@ public final class PolishAnalyzer extends StopwordAnalyzerBase {
protected TokenStreamComponents createComponents(String fieldName, protected TokenStreamComponents createComponents(String fieldName,
Reader reader) { Reader reader) {
final Tokenizer source = new StandardTokenizer(matchVersion, 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 LowerCaseFilter(matchVersion, result);
result = new StopFilter(matchVersion, result, stopwords); result = new StopFilter(matchVersion, result, stopwords);
if(!stemExclusionSet.isEmpty()) if(!stemExclusionSet.isEmpty())