Class PatternReplaceCharFilterFactory


  • public class PatternReplaceCharFilterFactory
    extends CharFilterFactory
    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
    SPI Name (case-insensitive: if the name is 'htmlStrip', 'htmlstrip' can be used when looking up the service).
    "patternReplace"