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

    input

    Fields inherited from class org.apache.lucene.analysis.TokenStream

    DEFAULT_TOKEN_ATTRIBUTE_FACTORY
  • Constructor Summary

    Constructors
    Constructor
    Description
    EasyDeskFilter(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

    Modifier and Type
    Method
    Description
    boolean
     

    Methods inherited from class org.apache.lucene.analysis.TokenFilter

    close, end, reset, unwrap

    Methods 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

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 - input
      morphologyAnalyzer - 한글 형태소 분석기, null 가능
  • Method Details

    • incrementToken

      public boolean incrementToken() throws IOException
      Specified by:
      incrementToken in class org.apache.lucene.analysis.TokenStream
      Throws:
      IOException