Class ChineseFilter

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    @Deprecated
    public final class ChineseFilter
    extends org.apache.lucene.analysis.TokenFilter
    Deprecated.
    Use StopFilter instead, which has the same functionality. This filter will be removed in Lucene 5.0
    A TokenFilter with a stop word table.
    • Numeric tokens are removed.
    • English tokens must be larger than 1 character.
    • One Chinese character as one Chinese word.
    TO DO:
    1. Add Chinese stop words, such as 
    2. Dictionary based Chinese word extraction
    3. Intelligent Chinese word extraction
    Version:
    1.0
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.lucene.util.AttributeSource

        org.apache.lucene.util.AttributeSource.AttributeFactory, org.apache.lucene.util.AttributeSource.State
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String[] STOP_WORDS
      Deprecated.
       
      • Fields inherited from class org.apache.lucene.analysis.TokenFilter

        input
    • Constructor Summary

      Constructors 
      Constructor Description
      ChineseFilter​(org.apache.lucene.analysis.TokenStream in)
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      boolean incrementToken()
      Deprecated.
       
      • Methods inherited from class org.apache.lucene.analysis.TokenFilter

        close, end, reset
      • Methods inherited from class org.apache.lucene.util.AttributeSource

        addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, restoreState, toString
    • Field Detail

      • STOP_WORDS

        public static final String[] STOP_WORDS
        Deprecated.
    • Constructor Detail

      • ChineseFilter

        public ChineseFilter​(org.apache.lucene.analysis.TokenStream in)
        Deprecated.
    • Method Detail

      • incrementToken

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