org.apache.accumulo.examples.wikisearch.normalizer
Class LcNoDiacriticsNormalizer
java.lang.Object
org.apache.accumulo.examples.wikisearch.normalizer.LcNoDiacriticsNormalizer
- All Implemented Interfaces:
- Normalizer
public class LcNoDiacriticsNormalizer
- extends Object
- implements Normalizer
An Normalizer
which performs the following steps:
- Unicode canonical decomposition (
Normalizer.Form.NFD
)
- Removal of diacritical marks
- Unicode canonical composition (
Normalizer.Form.NFC
)
- lower casing in the
English local
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LcNoDiacriticsNormalizer
public LcNoDiacriticsNormalizer()
normalizeFieldValue
public String normalizeFieldValue(String fieldName,
Object fieldValue)
- Description copied from interface:
Normalizer
- Creates normalized content for ingest based upon implemented logic.
- Specified by:
normalizeFieldValue
in interface Normalizer
- Parameters:
fieldName
- The field being normalizedfieldValue
- The value to normalize
- Returns:
- a normalized value
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.