public class JapaneseNumberFilterFactory extends TokenFilterFactory
JapaneseNumberFilter
.
<fieldType name="text_ja" class="solr.TextField"> <analyzer> <tokenizer class="solr.JapaneseTokenizerFactory" discardPunctuation="false"/> <filter class="solr.JapaneseNumberFilterFactory"/> </analyzer> </fieldType>
It is important that punctuation is not discarded by the tokenizer so use
discardPunctuation="false"
in your JapaneseTokenizerFactory
.
LUCENE_MATCH_VERSION_PARAM, luceneMatchVersion
Constructor and Description |
---|
JapaneseNumberFilterFactory(Map<String,String> args) |
Modifier and Type | Method and Description |
---|---|
TokenStream |
create(TokenStream input) |
availableTokenFilters, forName, lookupClass, normalize, reloadTokenFilters
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
public TokenStream create(TokenStream input)
create
in class TokenFilterFactory
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.