uschindler commented on code in PR #16680:
URL: https://github.com/apache/lucene/pull/16680#discussion_r4050423818


##########
lucene/analysis/common/src/java/org/apache/lucene/analysis/compound/CompoundWordTokenFilterBase.java:
##########
@@ -25,9 +25,13 @@
 import org.apache.lucene.analysis.tokenattributes.CharTermAttribute;
 import org.apache.lucene.analysis.tokenattributes.OffsetAttribute;
 import org.apache.lucene.analysis.tokenattributes.PositionIncrementAttribute;
+import org.apache.lucene.analysis.tokenattributes.TypeAttribute;
 
 /** Base class for decomposition token filters. */
 public abstract class CompoundWordTokenFilterBase extends TokenFilter {
+  /** Type assigned to subword tokens generated by {@link #decompose()}. */
+  public static final String TOKEN_TYPE_COMPOUND = "subword";

Review Comment:
   The constant should be named `TOKEN_TYPE_SUBWORD`



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to