org.apache.lucene.analysis.pattern

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