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/br BrazilianStemFilter.java
Date Mon, 31 Jan 2005 21:19:55 GMT
ehatcher    2005/01/31 13:19:55

  Modified:    contributions/analyzers/src/java/org/apache/lucene/analysis/br
                        BrazilianStemFilter.java
  Log:
  Fix token offsets.
  
  Revision  Changes    Path
  1.8       +1 -1      jakarta-lucene-sandbox/contributions/analyzers/src/java/org/apache/lucene/analysis/br/BrazilianStemFilter.java
  
  Index: BrazilianStemFilter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene-sandbox/contributions/analyzers/src/java/org/apache/lucene/analysis/br/BrazilianStemFilter.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- BrazilianStemFilter.java	18 Aug 2004 14:30:47 -0000	1.7
  +++ BrazilianStemFilter.java	31 Jan 2005 21:19:55 -0000	1.8
  @@ -117,7 +117,7 @@
         String s = stemmer.stem(token.termText());
         // If not stemmed, dont waste the time creating a new token.
         if ((s != null) && !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