lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sha...@apache.org
Subject svn commit: r892217 - in /lucene/solr/trunk: CHANGES.txt src/java/org/apache/solr/analysis/PatternTokenizer.java
Date Fri, 18 Dec 2009 10:43:41 GMT
Author: shalin
Date: Fri Dec 18 10:43:40 2009
New Revision: 892217

URL: http://svn.apache.org/viewvc?rev=892217&view=rev
Log:
SOLR-1667 -- PatternTokenizer does not reset attributes such as positionIncrementGap

Modified:
    lucene/solr/trunk/CHANGES.txt
    lucene/solr/trunk/src/java/org/apache/solr/analysis/PatternTokenizer.java

Modified: lucene/solr/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/CHANGES.txt?rev=892217&r1=892216&r2=892217&view=diff
==============================================================================
--- lucene/solr/trunk/CHANGES.txt (original)
+++ lucene/solr/trunk/CHANGES.txt Fri Dec 18 10:43:40 2009
@@ -145,6 +145,9 @@
 * SOLR-1660: CapitalizationFilter crashes if you use the maxWordCountOption
   (Robert Muir via shalin)
 
+* SOLR-1667: PatternTokenizer does not reset attributes such as positionIncrementGap
+  (Robert Muir via shalin)
+
 Other Changes
 ----------------------
 

Modified: lucene/solr/trunk/src/java/org/apache/solr/analysis/PatternTokenizer.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/analysis/PatternTokenizer.java?rev=892217&r1=892216&r2=892217&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/analysis/PatternTokenizer.java (original)
+++ lucene/solr/trunk/src/java/org/apache/solr/analysis/PatternTokenizer.java Fri Dec 18 10:43:40
2009
@@ -79,7 +79,7 @@
   @Override
   public boolean incrementToken() throws IOException {
     if (index >= str.length()) return false;
-    
+    clearAttributes();
     if (group >= 0) {
     
       // match a specific group



Mime
View raw message