Class MorfologikTokenFilterFactory

java.lang.Object
org.elasticsearch.index.analysis.AbstractTokenFilterFactory
pl.allegro.tech.elasticsearch.index.analysis.pl.MorfologikTokenFilterFactory
All Implemented Interfaces:
org.elasticsearch.index.analysis.TokenFilterFactory

public class MorfologikTokenFilterFactory extends org.elasticsearch.index.analysis.AbstractTokenFilterFactory
Morfologik Token Filter Factory with configurable dictionary, default Polish.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Parameter "dictionary" - name of file of custom dictionary from elasticsearch /config directory.

    Fields inherited from interface org.elasticsearch.index.analysis.TokenFilterFactory

    IDENTITY_FILTER
  • Constructor Summary

    Constructors
    Constructor
    Description
    MorfologikTokenFilterFactory(org.elasticsearch.index.IndexSettings indexSettings, org.elasticsearch.env.Environment env, String name, org.elasticsearch.common.settings.Settings settings)
    Constructs a new MorfologikTokenFilterFactory.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.lucene.analysis.TokenStream
    create(org.apache.lucene.analysis.TokenStream tokenStream)
     

    Methods inherited from class org.elasticsearch.index.analysis.AbstractTokenFilterFactory

    name

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.elasticsearch.index.analysis.TokenFilterFactory

    breaksFastVectorHighlighter, getAnalysisMode, getChainAwareTokenFilterFactory, getSynonymFilter, normalize
  • Field Details

    • DICTIONARY_PARAM

      public static final String DICTIONARY_PARAM
      Parameter "dictionary" - name of file of custom dictionary from elasticsearch /config directory.
      See Also:
  • Constructor Details

    • MorfologikTokenFilterFactory

      public MorfologikTokenFilterFactory(org.elasticsearch.index.IndexSettings indexSettings, org.elasticsearch.env.Environment env, String name, org.elasticsearch.common.settings.Settings settings) throws IOException
      Constructs a new MorfologikTokenFilterFactory.
      Parameters:
      indexSettings - - index level settings
      env - - elasticsearch environment
      name - - component name
      settings - - component settings
      Throws:
      IOException - - exception during creating a component
  • Method Details

    • create

      public org.apache.lucene.analysis.TokenStream create(org.apache.lucene.analysis.TokenStream tokenStream)