Class PatternReplaceCharFilterFactory
Factory for 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>
@since Solr 3.1
Inherited Members
Namespace: Lucene.Net.Analysis.Pattern
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
public class PatternReplaceCharFilterFactory : CharFilterFactory
Constructors
PatternReplaceCharFilterFactory(IDictionary<string, string>)
Creates a new PatternReplaceCharFilterFactory
Declaration
public PatternReplaceCharFilterFactory(IDictionary<string, string> args)
Parameters
Type | Name | Description |
---|---|---|
IDictionary<string, string> | args |
Methods
Create(TextReader)
Wraps the given TextReader with a Lucene.Net.Analysis.CharFilter.
Declaration
public override TextReader Create(TextReader input)
Parameters
Type | Name | Description |
---|---|---|
TextReader | input |
Returns
Type | Description |
---|---|
TextReader |