LUCENE-8778: Add SPI name and documentation for the KoreanNumberFilterFactory

This commit is contained in:
Tomoko Uchida 2019-06-22 20:23:01 +09:00
parent 422cf14439
commit 2d4dea370a
1 changed files with 4 additions and 0 deletions

View File

@ -37,9 +37,13 @@ import org.apache.lucene.analysis.util.TokenFilterFactory;
* It is important that punctuation is not discarded by the tokenizer so use * It is important that punctuation is not discarded by the tokenizer so use
* {@code discardPunctuation="false"} in your {@link KoreanTokenizerFactory}. * {@code discardPunctuation="false"} in your {@link KoreanTokenizerFactory}.
* @since 8.2.0 * @since 8.2.0
* @lucene.spi {@value #NAME}
*/ */
public class KoreanNumberFilterFactory extends TokenFilterFactory { public class KoreanNumberFilterFactory extends TokenFilterFactory {
/** SPI name */
public static final String NAME = "koreanNumber";
public KoreanNumberFilterFactory(Map<String, String> args) { public KoreanNumberFilterFactory(Map<String, String> args) {
super(args); super(args);
if (!args.isEmpty()) { if (!args.isEmpty()) {