Class MorfologikFilterFactory

  • All Implemented Interfaces:
    ResourceLoaderAware

    public class MorfologikFilterFactory
    extends TokenFilterFactory
    implements ResourceLoaderAware
    Filter factory for MorfologikFilter.

    An explicit resource name of the dictionary (".dict") can be provided via the dictionary attribute, as the example below demonstrates:

     <fieldType name="text_mylang" class="solr.TextField" positionIncrementGap="100">
       <analyzer>
         <tokenizer class="solr.WhitespaceTokenizerFactory"/>
         <filter class="solr.MorfologikFilterFactory" dictionary="mylang.dict" />
       </analyzer>
     </fieldType>

    If the dictionary attribute is not provided, the Polish dictionary is loaded and used by default.

    Since:
    4.0.0
    See Also:
    Morfologik web site
    SPI Name (case-insensitive: if the name is 'htmlStrip', 'htmlstrip' can be used when looking up the service).
    "morfologik"