org.apache.lucene.analysis.morfologik

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.

    See Also:
    Morfologik web site