You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by to...@apache.org on 2019/06/22 11:24:00 UTC

[lucene-solr] branch master updated: LUCENE-8778: Add SPI name and documentation for the KoreanNumberFilterFactory

This is an automated email from the ASF dual-hosted git repository.

tomoko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git


The following commit(s) were added to refs/heads/master by this push:
     new 2d4dea3  LUCENE-8778: Add SPI name and documentation for the KoreanNumberFilterFactory
2d4dea3 is described below

commit 2d4dea370a926b6e424068d6ca4981e608214e5f
Author: Tomoko Uchida <to...@apache.org>
AuthorDate: Sat Jun 22 20:23:01 2019 +0900

    LUCENE-8778: Add SPI name and documentation for the KoreanNumberFilterFactory
---
 .../java/org/apache/lucene/analysis/ko/KoreanNumberFilterFactory.java | 4 ++++
 1 file changed, 4 insertions(+)

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