Skip to content

Apache Lucene open-source search software

Add breif descriptions for supported parameters

Tomoko Uchida4c27b839e5f8
diff --git a/lucene/analysis/nori/src/java/org/apache/lucene/analysis/ko/KoreanPartOfSpeechStopFilterFactory.java b/lucene/analysis/nori/src/java/org/apache/lucene/analysis/ko/KoreanPartOfSpeechStopFilterFactory.java
index a830c1fcbd7..70bcef6cc41 100644
--- a/lucene/analysis/nori/src/java/org/apache/lucene/analysis/ko/KoreanPartOfSpeechStopFilterFactory.java
+++ b/lucene/analysis/nori/src/java/org/apache/lucene/analysis/ko/KoreanPartOfSpeechStopFilterFactory.java
@@ -34,6 +34,12 @@ import org.apache.lucene.analysis.util.TokenFilterFactory;
* </analyzer>
* </fieldType>
* </pre>
+ *
+ * <p>
+ * Supports the following attributes:
+ * <ul>
+ * <li>tags: List of stop tags. if not specified, {@link KoreanPartOfSpeechStopFilter#DEFAULT_STOP_TAGS} is used.</li>
+ * </ul>
* @lucene.experimental
*/
public class KoreanPartOfSpeechStopFilterFactory extends TokenFilterFactory {
diff --git a/lucene/analysis/nori/src/java/org/apache/lucene/analysis/ko/KoreanTokenizerFactory.java b/lucene/analysis/nori/src/java/org/apache/lucene/analysis/ko/KoreanTokenizerFactory.java
index 52885e879fd..cd18cf64d05 100644
--- a/lucene/analysis/nori/src/java/org/apache/lucene/analysis/ko/KoreanTokenizerFactory.java
+++ b/lucene/analysis/nori/src/java/org/apache/lucene/analysis/ko/KoreanTokenizerFactory.java
@@ -32,6 +32,7 @@ import org.apache.lucene.util.AttributeFactory;
import org.apache.lucene.util.IOUtils;
import org.apache.lucene.analysis.util.ResourceLoader;
import org.apache.lucene.analysis.util.ResourceLoaderAware;
+import org.apache.lucene.analysis.ko.KoreanTokenizer.DecompoundMode;
/**
* Factory for {@link KoreanTokenizer}.
@@ -46,7 +47,16 @@ import org.apache.lucene.analysis.util.ResourceLoaderAware;
* /&gt;
* &lt;/analyzer&gt;
* &lt;/fieldType&gt;
- </pre>
+ * </pre>
+ *
+ * <p>
+ * Supports the following attributes:
+ * <ul>
+ * <li>userDictionary: User dictionary path.</li>
+ * <li>userDictionaryEncoding: User dictionary encoding.</li>
+ * <li>decompoundMode: Decompound mode. Either 'none', 'discard', 'mixed'. Default is discard. See {@link DecompoundMode}</li>
+ * <li>outputUnknownUnigrams: If true outputs unigrams for unknown words.</li>
+ * </ul>
* @lucene.experimental
*/
public class KoreanTokenizerFactory extends TokenizerFactory implements ResourceLoaderAware {