Class SelectiveFoldingFilter

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public final class SelectiveFoldingFilter
    extends org.apache.lucene.analysis.TokenFilter
    A Lucene filter based on ASCIIFoldingFilter, but that allows the caller to provide a white list for selective folding filter. Entries in the white list are ignored during the filtering. This is useful for languages that require certain characters to be ignored.
    See Also:
    ASCIIFoldingFilter
    • 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.TokenStream

        DEFAULT_TOKEN_ATTRIBUTE_FACTORY
    • Constructor Summary

      Constructors 
      Constructor Description
      SelectiveFoldingFilter​(org.apache.lucene.analysis.TokenStream input, org.apache.lucene.analysis.CharArraySet whitelisted)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean incrementToken()  
      • 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, endAttributes, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, removeAllAttributes, restoreState, toString
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • SelectiveFoldingFilter

        public SelectiveFoldingFilter​(org.apache.lucene.analysis.TokenStream input,
                                      org.apache.lucene.analysis.CharArraySet whitelisted)
    • Method Detail

      • incrementToken

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