Class JcsegAnalyzer

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public final class JcsegAnalyzer
    extends org.apache.lucene.analysis.Analyzer
    Jcseg analyzer for lucene with version on or after 5.0
    Author:
    chenxin
    • Constructor Detail

      • JcsegAnalyzer

        public JcsegAnalyzer​(ISegment.Type type,
                             SegmenterConfig config,
                             ADictionary dic)
        initialize the analyzer with the specified mode, configuration, dictionary
        Parameters:
        type -
        config -
        dic -
    • Method Detail

      • createComponents

        protected org.apache.lucene.analysis.Analyzer.TokenStreamComponents createComponents​(String fieldName)
        Specified by:
        createComponents in class org.apache.lucene.analysis.Analyzer