Class SnowballPorterFilterFactory

  • All Implemented Interfaces:
    ResourceLoaderAware

    public class SnowballPorterFilterFactory
    extends TokenFilterFactory
    implements ResourceLoaderAware
    Factory for SnowballFilter, with configurable language

    Note: Use of the "Lovins" stemmer is not recommended, as it is implemented with reflection.

     <fieldType name="text_snowballstem" class="solr.TextField" positionIncrementGap="100">
       <analyzer>
         <tokenizer class="solr.StandardTokenizerFactory"/>
         <filter class="solr.LowerCaseFilterFactory"/>
         <filter class="solr.SnowballPorterFilterFactory" protected="protectedkeyword.txt" language="English"/>
       </analyzer>
     </fieldType>
    Since:
    3.1
    SPI Name (case-insensitive: if the name is 'htmlStrip', 'htmlstrip' can be used when looking up the service).
    "snowballPorter"