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
.
Modifier and Type | Field and Description |
---|---|
static String |
NAME
SPI name
|
LUCENE_MATCH_VERSION_PARAM, luceneMatchVersion
Constructor and Description |
---|
JapaneseNumberFilterFactory(Map<String,String> args) |
Modifier and Type | Method and Description |
---|---|
TokenStream |
create(TokenStream input) |
availableTokenFilters, findSPIName, 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 static final String NAME
public TokenStream create(TokenStream input)
create
in class TokenFilterFactory
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.