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
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, forName, lookupClass, reloadTokenFilters
assureMatchVersion, 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, splitFileNames
public PatternReplaceFilter create(TokenStream input)
TokenFilterFactory
create
in class TokenFilterFactory
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.