You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@lucene.apache.org by mi...@apache.org on 2008/07/04 12:06:18 UTC

svn commit: r673990 - in /lucene/java/trunk: CHANGES.txt src/java/org/apache/lucene/analysis/TokenFilter.java

Author: mikemccand
Date: Fri Jul  4 03:06:17 2008
New Revision: 673990

URL: http://svn.apache.org/viewvc?rev=673990&view=rev
Log:
LUCENE-1324: add TokenFilter.reset()

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

Modified: lucene/java/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/java/trunk/CHANGES.txt?rev=673990&r1=673989&r2=673990&view=diff
==============================================================================
--- lucene/java/trunk/CHANGES.txt (original)
+++ lucene/java/trunk/CHANGES.txt Fri Jul  4 03:06:17 2008
@@ -86,6 +86,9 @@
 12. LUCENE-1325: Added IndexCommit.isOptimized().  (Shalin Shekhar
     Mangar via Mike McCandless)
 
+13. LUCENE-1324: Added TokenFilter.reset(). (Shai Erera via Mike
+    McCandless)
+
 Bug fixes
     
  1. LUCENE-1134: Fixed BooleanQuery.rewrite to only optimize a single 

Modified: lucene/java/trunk/src/java/org/apache/lucene/analysis/TokenFilter.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/analysis/TokenFilter.java?rev=673990&r1=673989&r2=673990&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/analysis/TokenFilter.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/analysis/TokenFilter.java Fri Jul  4 03:06:17 2008
@@ -39,4 +39,9 @@
     input.close();
   }
 
+  /** Reset the filter as well as the input TokenStream. */
+  public void reset() throws IOException {
+    super.reset();
+    input.reset();
+  }
 }