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 010abc8d2f0..a830c1fcbd7 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 @@ -25,12 +25,21 @@ import org.apache.lucene.analysis.util.TokenFilterFactory; /** * Factory for {@link KoreanPartOfSpeechStopFilter}. + *
+ * <fieldType name="text_ko" class="solr.TextField">
+ *    <analyzer>
+ *      <tokenizer class="solr.KoreanTokenizerFactory"/>
+ *      <filter class="solr.KoreanPartOfSpeechStopFilterFactory"
+ *              tags="E,J"/>
+ *    </analyzer>
+ * </fieldType>
+ * 
* @lucene.experimental */ public class KoreanPartOfSpeechStopFilterFactory extends TokenFilterFactory { private Set stopTags; - /** Creates a new JapanesePartOfSpeechStopFilterFactory */ + /** Creates a new KoreanPartOfSpeechStopFilterFactory */ public KoreanPartOfSpeechStopFilterFactory(Map args) { super(args); Set stopTagStr = getSet(args, "tags"); diff --git a/lucene/analysis/nori/src/java/org/apache/lucene/analysis/ko/KoreanReadingFormFilterFactory.java b/lucene/analysis/nori/src/java/org/apache/lucene/analysis/ko/KoreanReadingFormFilterFactory.java index 860a1393396..ce2779b7bbe 100644 --- a/lucene/analysis/nori/src/java/org/apache/lucene/analysis/ko/KoreanReadingFormFilterFactory.java +++ b/lucene/analysis/nori/src/java/org/apache/lucene/analysis/ko/KoreanReadingFormFilterFactory.java @@ -23,6 +23,14 @@ import org.apache.lucene.analysis.util.TokenFilterFactory; /** * Factory for {@link KoreanReadingFormFilter}. + *
+ * <fieldType name="text_ko" class="solr.TextField">
+ *   <analyzer>
+ *     <tokenizer class="solr.KoreanTokenizerFactory"/>
+ *     <filter class="solr.KoreanReadingFormFilterFactory"/>
+ *   </analyzer>
+ * </fieldType>
+ * 
* @lucene.experimental */ public class KoreanReadingFormFilterFactory 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 43a02d3a0d6..09641a33731 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 @@ -35,6 +35,18 @@ import org.apache.lucene.analysis.util.ResourceLoaderAware; /** * Factory for {@link KoreanTokenizer}. + *
+ * <fieldType name="text_ko" class="solr.TextField">
+ *   <analyzer>
+ *     <tokenizer class="solr.KoreanTokenizerFactory"
+ *       decompoundMode="DISCARD"
+ *       userDictionary="user.txt"
+ *       userDictionaryEncoding="UTF-8"
+ *       outputUnknownUnigrams="true"
+ *     />
+ *  </analyzer>
+ * </fieldType>
+ 
* @lucene.experimental */ public class KoreanTokenizerFactory extends TokenizerFactory implements ResourceLoaderAware {