Package com.easydesk.lucene.analyzer
Class EasyDeskFilter
java.lang.Object
org.apache.lucene.util.AttributeSource
org.apache.lucene.analysis.TokenStream
org.apache.lucene.analysis.TokenFilter
com.easydesk.lucene.analyzer.EasyDeskFilter
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.lucene.util.Unwrappable<org.apache.lucene.analysis.TokenStream>
public final class EasyDeskFilter
extends org.apache.lucene.analysis.TokenFilter
EasyDeskTokenizer 가 만든 token 을 처리한다.
한글 token 은 MorphologyAnalyzer 가 주어진 경우 형태소 분석 결과를 debug log 로 남긴다. 기존
com.nannet.fulcrum.lucene.analyzer.EasyDeskFilter 와 동일하게 token 자체는 변경하지 않는다. (어미, 조사 제거는
아직 구현되지 않음)
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.util.AttributeSource
org.apache.lucene.util.AttributeSource.State -
Field Summary
Fields inherited from class org.apache.lucene.analysis.TokenFilter
inputFields inherited from class org.apache.lucene.analysis.TokenStream
DEFAULT_TOKEN_ATTRIBUTE_FACTORY -
Constructor Summary
ConstructorsConstructorDescriptionEasyDeskFilter(org.apache.lucene.analysis.TokenStream in) Creates a new EasyDeskFilter object without morphology analyzer.EasyDeskFilter(org.apache.lucene.analysis.TokenStream in, MorphologyAnalyzer morphologyAnalyzer) Creates a new EasyDeskFilter object. -
Method Summary
Methods inherited from class org.apache.lucene.analysis.TokenFilter
close, end, reset, unwrapMethods inherited from class org.apache.lucene.util.AttributeSource
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, endAttributes, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, removeAllAttributes, restoreState, toString
-
Constructor Details
-
EasyDeskFilter
public EasyDeskFilter(org.apache.lucene.analysis.TokenStream in) Creates a new EasyDeskFilter object without morphology analyzer.- Parameters:
in- input
-
EasyDeskFilter
public EasyDeskFilter(org.apache.lucene.analysis.TokenStream in, MorphologyAnalyzer morphologyAnalyzer) Creates a new EasyDeskFilter object.- Parameters:
in- inputmorphologyAnalyzer- 한글 형태소 분석기,null가능
-
-
Method Details
-
incrementToken
- Specified by:
incrementTokenin classorg.apache.lucene.analysis.TokenStream- Throws:
IOException
-