You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by rm...@apache.org on 2010/09/24 02:42:05 UTC

svn commit: r1000675 - /lucene/dev/trunk/modules/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/LengthFilter.java

Author: rmuir
Date: Fri Sep 24 00:42:05 2010
New Revision: 1000675

URL: http://svn.apache.org/viewvc?rev=1000675&view=rev
Log:
LUCENE-2070: document how LengthFilter counts characters

Modified:
    lucene/dev/trunk/modules/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/LengthFilter.java

Modified: lucene/dev/trunk/modules/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/LengthFilter.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/modules/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/LengthFilter.java?rev=1000675&r1=1000674&r2=1000675&view=diff
==============================================================================
--- lucene/dev/trunk/modules/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/LengthFilter.java (original)
+++ lucene/dev/trunk/modules/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/LengthFilter.java Fri Sep 24 00:42:05 2010
@@ -25,6 +25,9 @@ import org.apache.lucene.analysis.tokena
 
 /**
  * Removes words that are too long or too short from the stream.
+ * <p>
+ * Note: Length is calculated as the number of UTF-16 code units.
+ * </p>
  */
 public final class LengthFilter extends TokenFilter {