lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gschw...@apache.org
Subject cvs commit: jakarta-lucene/src/java/org/apache/lucene/analysis/de GermanAnalyzer.java
Date Sun, 21 Jul 2002 23:00:37 GMT
gschwarz    2002/07/21 16:00:37

  Modified:    src/java/org/apache/lucene/analysis/de GermanAnalyzer.java
  Log:
  The class itself and tokenStream() are not longer final. tokenStream() now works without
LowerCaseFilter.
  
  Revision  Changes    Path
  1.4       +3 -5      jakarta-lucene/src/java/org/apache/lucene/analysis/de/GermanAnalyzer.java
  
  Index: GermanAnalyzer.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/java/org/apache/lucene/analysis/de/GermanAnalyzer.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- GermanAnalyzer.java	19 Apr 2002 19:09:36 -0000	1.3
  +++ GermanAnalyzer.java	21 Jul 2002 23:00:37 -0000	1.4
  @@ -74,7 +74,7 @@
    * @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 @@
   	 * @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;
   	}
   }
  
  
  

--
To unsubscribe, e-mail:   <mailto:lucene-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-dev-help@jakarta.apache.org>


Mime
View raw message