Class SynonymTokenFilterFactory

    • Field Detail

      • ignoreCase

        @Deprecated
        protected final boolean ignoreCase
        Deprecated.
        this property only works with tokenizer property
      • format

        protected final java.lang.String format
      • expand

        protected final boolean expand
      • lenient

        protected final boolean lenient
      • settings

        protected final Settings settings
      • tokenizerFactory

        @Deprecated
        protected final TokenizerFactory tokenizerFactory
        Deprecated.
        This filter tokenize synonyms with whatever tokenizer and token filters appear before it in the chain in 6.0.
    • Constructor Detail

      • SynonymTokenFilterFactory

        public SynonymTokenFilterFactory​(IndexSettings indexSettings,
                                         Environment env,
                                         AnalysisRegistry analysisRegistry,
                                         java.lang.String name,
                                         Settings settings)
                                  throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • create

        public org.apache.lucene.analysis.TokenStream create​(org.apache.lucene.analysis.TokenStream tokenStream)
      • getRulesFromSettings

        protected java.io.Reader getRulesFromSettings​(Environment env)