org.apache.lucene.analysis.charfilter

Class NormalizeCharMap.Builder

  • java.lang.Object
    • org.apache.lucene.analysis.charfilter.NormalizeCharMap.Builder
    • Constructor Detail

    • Method Detail

      • add

        public void add(String match,
                        String replacement)
        Records a replacement to be applied to the input stream. Whenever singleMatch occurs in the input, it will be replaced with replacement.
        Parameters:
        match - input String to be replaced
        replacement - output String
        Throws:
        IllegalArgumentException - if match is the empty string, or was already previously added