Class PatternReplaceFilterFactory


  • public class PatternReplaceFilterFactory
    extends TokenFilterFactory
    Factory for 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>
    Since:
    3.1
    See Also:
    PatternReplaceFilter
    SPI Name (case-insensitive: if the name is 'htmlStrip', 'htmlstrip' can be used when looking up the service).
    "patternReplace"