org.apache.lucene.analysis.miscellaneous

Class LengthFilterFactory



  • public class LengthFilterFactory
    extends TokenFilterFactory
    Factory for LengthFilter.
     <fieldType name="text_lngth" class="solr.TextField" positionIncrementGap="100">
       <analyzer>
         <tokenizer class="solr.WhitespaceTokenizerFactory"/>
         <filter class="solr.LengthFilterFactory" min="0" max="1" />
       </analyzer>
     </fieldType>