public class PatternReplaceFilterFactory extends TokenFilterFactory
PatternReplaceFilter
.
<fieldType name="text_ptnreplace" class="solr.TextField" positionIncrementGap="100"> <analyzer> <tokenizer class="solr.KeywordTokenizerFactory"/> <filter class="solr.PatternReplaceFilterFactory" pattern="([^a-z])" replacement="" replace="all"/> </analyzer> </fieldType>
PatternReplaceFilter
Modifier and Type | Field and Description |
---|---|
static String |
NAME
SPI name
|
LUCENE_MATCH_VERSION_PARAM, luceneMatchVersion
Constructor and Description |
---|
PatternReplaceFilterFactory(Map<String,String> args)
Creates a new PatternReplaceFilterFactory
|
Modifier and Type | Method and Description |
---|---|
PatternReplaceFilter |
create(TokenStream input)
Transform the specified input TokenStream
|
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 PatternReplaceFilter create(TokenStream input)
TokenFilterFactory
create
in class TokenFilterFactory
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.