org.apache.lucene.analysis.snowball

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>