public class PatternReplaceCharFilterFactory extends CharFilterFactory
PatternReplaceCharFilter
.
<fieldType name="text_ptnreplace" class="solr.TextField" positionIncrementGap="100"> <analyzer> <charFilter class="solr.PatternReplaceCharFilterFactory" pattern="([^a-z])" replacement=""/> <tokenizer class="solr.KeywordTokenizerFactory"/> </analyzer> </fieldType>
LUCENE_MATCH_VERSION_PARAM, luceneMatchVersion
Constructor and Description |
---|
PatternReplaceCharFilterFactory(Map<String,String> args)
Creates a new PatternReplaceCharFilterFactory
|
Modifier and Type | Method and Description |
---|---|
Reader |
create(Reader input)
Wraps the given Reader with a CharFilter.
|
Reader |
normalize(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 to
create method. |
availableCharFilters, forName, lookupClass, reloadCharFilters
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 Reader create(Reader input)
CharFilterFactory
create
in class CharFilterFactory
public Reader normalize(Reader input)
CharFilterFactory
create
method.normalize
in class CharFilterFactory
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.