Class AsciiFoldingTokenFilter


  • public final class AsciiFoldingTokenFilter
    extends TokenFilter
    Converts alphabetic, numeric, and symbolic Unicode characters which are not in the first 127 ASCII characters (the "Basic Latin" Unicode block) into their ASCII equivalents, if such equivalents exist. This token filter is implemented using Apache Lucene.
    • Constructor Detail

      • AsciiFoldingTokenFilter

        public AsciiFoldingTokenFilter​(String name)
        Constructor of AsciiFoldingTokenFilter.
        Parameters:
        name - The name of the token filter. It must only contain letters, digits, spaces, dashes or underscores, can only start and end with alphanumeric characters, and is limited to 128 characters.
    • Method Detail

      • isPreserveOriginal

        public Boolean isPreserveOriginal()
        Get the preserveOriginal property: A value indicating whether the original token will be kept. Default is false.
        Returns:
        the preserveOriginal value.
      • setPreserveOriginal

        public AsciiFoldingTokenFilter setPreserveOriginal​(Boolean preserveOriginal)
        Set the preserveOriginal property: A value indicating whether the original token will be kept. Default is false.
        Parameters:
        preserveOriginal - the preserveOriginal value to set.
        Returns:
        the AsciiFoldingTokenFilter object itself.