Class NormalizeLevel


  • public class NormalizeLevel
    extends Object
    class representing the character normalization we want to do on query and indexed text. Levels are strict subsets, so doing accent removal means doing codepoint normalizing and case normalizing also.
    • Constructor Detail

      • NormalizeLevel

        public NormalizeLevel()
        Construct a default (full) normalizelevel,
      • NormalizeLevel

        public NormalizeLevel​(NormalizeLevel.Level level,
                              boolean fromUser)
        Construct for a specific level, possibly user specified
        Parameters:
        level - which level to use
        fromUser - whether this was specified by the user
    • Method Detail

      • doRemoveAccents

        public boolean doRemoveAccents()
        Returns whether accents should be removed from text
      • inferCodepoint

        public void inferCodepoint()
        Change the current level to CODEPOINT as inferred by other features' needs. If the current level was user specified it will not change; also this will not increase the level.
      • inferLowercase

        public void inferLowercase()
        Change the current level to LOWERCASE as inferred by other features' needs. If the current level was user specified it will not change; also this will not increase the level.