The class itself and tokenStream() are not longer final. tokenStream() now works without LowerCaseFilter.

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149823 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
gschwarz 2002-07-21 23:00:37 +00:00
parent 6b58d41083
commit aedf9e1ccf
1 changed files with 2 additions and 4 deletions

View File

@ -74,7 +74,7 @@ import java.util.Hashtable;
* @author Gerhard Schwarz
* @version $Id$
*/
public final class GermanAnalyzer extends Analyzer {
public class GermanAnalyzer extends Analyzer {
/**
* List of typical german stopwords.
@ -156,13 +156,11 @@ public final class GermanAnalyzer extends Analyzer {
* @return A TokenStream build from a StandardTokenizer filtered with
* StandardFilter, StopFilter, GermanStemFilter and LowerCaseFilter
*/
public final TokenStream tokenStream( String fieldName, Reader reader ) {
public TokenStream tokenStream( String fieldName, Reader reader ) {
TokenStream result = new StandardTokenizer( reader );
result = new StandardFilter( result );
result = new StopFilter( result, stoptable );
result = new GermanStemFilter( result, excltable );
// Convert to lowercase after stemming!
result = new LowerCaseFilter( result );
return result;
}
}