org.wltea.analyzer.lucene
类 IKAnalyzer

java.lang.Object
  继承者 org.apache.lucene.analysis.Analyzer
      继承者 org.wltea.analyzer.lucene.IKAnalyzer
所有已实现的接口:
java.io.Closeable

public final class IKAnalyzer
extends org.apache.lucene.analysis.Analyzer

IK分词器,Lucene Analyzer接口实现 兼容Lucene 4.0版本


嵌套类摘要
 
从类 org.apache.lucene.analysis.Analyzer 继承的嵌套类/接口
org.apache.lucene.analysis.Analyzer.GlobalReuseStrategy, org.apache.lucene.analysis.Analyzer.PerFieldReuseStrategy, org.apache.lucene.analysis.Analyzer.ReuseStrategy, org.apache.lucene.analysis.Analyzer.TokenStreamComponents
 
构造方法摘要
IKAnalyzer()
          IK分词器Lucene Analyzer接口实现类 默认细粒度切分算法
IKAnalyzer(boolean useSmart)
          IK分词器Lucene Analyzer接口实现类
 
方法摘要
 void setUseSmart(boolean useSmart)
           
 boolean useSmart()
           
 
从类 org.apache.lucene.analysis.Analyzer 继承的方法
close, getOffsetGap, getPositionIncrementGap, tokenStream
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

IKAnalyzer

public IKAnalyzer()
IK分词器Lucene Analyzer接口实现类 默认细粒度切分算法


IKAnalyzer

public IKAnalyzer(boolean useSmart)
IK分词器Lucene Analyzer接口实现类

参数:
useSmart - 当为true时,分词器进行智能切分
方法详细信息

useSmart

public boolean useSmart()

setUseSmart

public void setUseSmart(boolean useSmart)