Details
-
New Feature
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.4
-
None
Description
Add a new CharFilter that uses a regular expression for the target of replace string in char stream.
Usage:
schema.xml
<fieldType name="textCharNorm" class="solr.TextField" positionIncrementGap="100" > <analyzer> <charFilter class="solr.PatternReplaceCharFilterFactory" groupedPattern="([nN][oO]\.)\s*(\d+)" replaceGroups="1,2" blockDelimiters=":;"/> <charFilter class="solr.MappingCharFilterFactory" mapping="mapping-ISOLatin1Accent.txt"/> <tokenizer class="solr.WhitespaceTokenizerFactory"/> </analyzer> </fieldType>