Apache Lucene open-source search software
LUCENE-2070: document how LengthFilter counts characters
Robert Muircce20cd82050
diff --git a/modules/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/LengthFilter.java b/modules/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/LengthFilter.javaindex 75610675bff..bfccddbeab4 100644--- a/modules/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/LengthFilter.java+++ b/modules/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/LengthFilter.java@@ -25,6 +25,9 @@ import org.apache.lucene.analysis.tokenattributes.CharTermAttribute;/*** 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 {