Package org.apache.lucene.analysis.ja
Class JapaneseIterationMarkCharFilterFactory
- java.lang.Object
-
- org.apache.lucene.analysis.util.AbstractAnalysisFactory
-
- org.apache.lucene.analysis.util.CharFilterFactory
-
- org.apache.lucene.analysis.ja.JapaneseIterationMarkCharFilterFactory
-
public class JapaneseIterationMarkCharFilterFactory extends CharFilterFactory
Factory forJapaneseIterationMarkCharFilter
.<fieldType name="text_ja" class="solr.TextField" positionIncrementGap="100" autoGeneratePhraseQueries="false"> <analyzer> <charFilter class="solr.JapaneseIterationMarkCharFilterFactory normalizeKanji="true" normalizeKana="true"/> <tokenizer class="solr.JapaneseTokenizerFactory"/> </analyzer> </fieldType>
- Since:
- 4.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
NAME
SPI nameprivate static java.lang.String
NORMALIZE_KANA_PARAM
private static java.lang.String
NORMALIZE_KANJI_PARAM
private boolean
normalizeKana
private boolean
normalizeKanji
-
Fields inherited from class org.apache.lucene.analysis.util.AbstractAnalysisFactory
LUCENE_MATCH_VERSION_PARAM, luceneMatchVersion
-
-
Constructor Summary
Constructors Constructor Description JapaneseIterationMarkCharFilterFactory(java.util.Map<java.lang.String,java.lang.String> args)
Creates a new JapaneseIterationMarkCharFilterFactory
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.Reader
create(java.io.Reader input)
Wraps the given Reader with a CharFilter.java.io.Reader
normalize(java.io.Reader input)
Normalize the specified input Reader While the default implementation returns input unchanged, char filters that should be applied at normalization time can delegate tocreate
method.-
Methods inherited from class org.apache.lucene.analysis.util.CharFilterFactory
availableCharFilters, findSPIName, forName, lookupClass, reloadCharFilters
-
Methods inherited from class org.apache.lucene.analysis.util.AbstractAnalysisFactory
get, get, get, get, get, getBoolean, getChar, getClassArg, getFloat, getInt, getLines, getLuceneMatchVersion, getOriginalArgs, getPattern, getSet, getSnowballWordSet, getWordSet, isExplicitLuceneMatchVersion, require, require, require, requireBoolean, requireChar, requireFloat, requireInt, setExplicitLuceneMatchVersion, splitAt, splitFileNames
-
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
SPI name- See Also:
- Constant Field Values
-
NORMALIZE_KANJI_PARAM
private static final java.lang.String NORMALIZE_KANJI_PARAM
- See Also:
- Constant Field Values
-
NORMALIZE_KANA_PARAM
private static final java.lang.String NORMALIZE_KANA_PARAM
- See Also:
- Constant Field Values
-
normalizeKanji
private final boolean normalizeKanji
-
normalizeKana
private final boolean normalizeKana
-
-
Method Detail
-
create
public java.io.Reader create(java.io.Reader input)
Description copied from class:CharFilterFactory
Wraps the given Reader with a CharFilter.- Specified by:
create
in classCharFilterFactory
-
normalize
public java.io.Reader normalize(java.io.Reader input)
Description copied from class:CharFilterFactory
Normalize the specified input Reader While the default implementation returns input unchanged, char filters that should be applied at normalization time can delegate tocreate
method.- Overrides:
normalize
in classCharFilterFactory
-
-