Package org.lionsoul.jcseg.analyzer
Class JcsegAnalyzer
- java.lang.Object
-
- org.apache.lucene.analysis.Analyzer
-
- org.lionsoul.jcseg.analyzer.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
-
-
Field Summary
Fields Modifier and Type Field Description SegmenterConfig
config
ADictionary
dic
ISegment.Type
type
-
Constructor Summary
Constructors Constructor Description JcsegAnalyzer(ISegment.Type type, SegmenterConfig config, ADictionary dic)
initialize the analyzer with the specified mode, configuration, dictionary
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.lucene.analysis.Analyzer.TokenStreamComponents
createComponents(String fieldName)
SegmenterConfig
getConfig()
ADictionary
getDict()
-
-
-
Field Detail
-
type
public ISegment.Type type
-
config
public final SegmenterConfig config
-
dic
public final ADictionary dic
-
-
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
-
getConfig
public SegmenterConfig getConfig()
-
getDict
public ADictionary getDict()
-
createComponents
protected org.apache.lucene.analysis.Analyzer.TokenStreamComponents createComponents(String fieldName)
- Specified by:
createComponents
in classorg.apache.lucene.analysis.Analyzer
-
-