lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ehatc...@apache.org
Subject cvs commit: jakarta-lucene-sandbox/contributions/analyzers/src/java/org/apache/lucene/analysis/fr FrenchStemFilter.java
Date Mon, 31 Jan 2005 14:13:39 GMT
ehatcher    2005/01/31 06:13:39

  Modified:    contributions/analyzers/src/java/org/apache/lucene/analysis/fr
                        FrenchStemFilter.java
  Log:
  Fix token offsets.  Contributed by boblannoy <at> tiscali <dot> be
  
  Revision  Changes    Path
  1.5       +1 -1      jakarta-lucene-sandbox/contributions/analyzers/src/java/org/apache/lucene/analysis/fr/FrenchStemFilter.java
  
  Index: FrenchStemFilter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene-sandbox/contributions/analyzers/src/java/org/apache/lucene/analysis/fr/FrenchStemFilter.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- FrenchStemFilter.java	12 Mar 2004 15:52:59 -0000	1.4
  +++ FrenchStemFilter.java	31 Jan 2005 14:13:38 -0000	1.5
  @@ -114,7 +114,7 @@
   			String s = stemmer.stem( token.termText() );
   			// If not stemmed, dont waste the time creating a new token
   			if ( !s.equals( token.termText() ) ) {
  -				return new Token( s, 0, s.length(), token.type() );
  +			   return new Token( s, token.startOffset(), token.endOffset(), token.type());
   			}
   			return token;
   		}
  
  
  

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


Mime
View raw message