Class ScandinavianNormalizer
- java.lang.Object
-
- org.apache.lucene.analysis.miscellaneous.ScandinavianNormalizer
-
public final class ScandinavianNormalizer extends java.lang.ObjectThis Normalizer does the heavy lifting for a set of Scandinavian normalization filters, normalizing use of the interchangeable Scandinavian characters æÆäÄöÖøØ and folded variants (aa, ao, ae, oe and oo) by transforming them to åÅæÆøØ.- Since:
- 9.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classScandinavianNormalizer.FoldingsList of possible foldings that can be used when configuring the filter
-
Field Summary
Fields Modifier and Type Field Description (package private) static charaa(package private) static charAA(package private) static charae(package private) static charAE(package private) static charae_se(package private) static charAE_sestatic java.util.Set<ScandinavianNormalizer.Foldings>ALL_FOLDINGSprivate java.util.Set<ScandinavianNormalizer.Foldings>foldings(package private) static charoe(package private) static charOE(package private) static charoe_se(package private) static charOE_se
-
Constructor Summary
Constructors Constructor Description ScandinavianNormalizer(java.util.Set<ScandinavianNormalizer.Foldings> foldings)Create the instance, while choosing which foldings to apply.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intprocessToken(char[] buffer, int length)Takes the original buffer and length as input.
-
-
-
Field Detail
-
foldings
private final java.util.Set<ScandinavianNormalizer.Foldings> foldings
-
ALL_FOLDINGS
public static final java.util.Set<ScandinavianNormalizer.Foldings> ALL_FOLDINGS
-
AA
static final char AA
- See Also:
- Constant Field Values
-
aa
static final char aa
- See Also:
- Constant Field Values
-
AE
static final char AE
- See Also:
- Constant Field Values
-
ae
static final char ae
- See Also:
- Constant Field Values
-
AE_se
static final char AE_se
- See Also:
- Constant Field Values
-
ae_se
static final char ae_se
- See Also:
- Constant Field Values
-
OE
static final char OE
- See Also:
- Constant Field Values
-
oe
static final char oe
- See Also:
- Constant Field Values
-
OE_se
static final char OE_se
- See Also:
- Constant Field Values
-
oe_se
static final char oe_se
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ScandinavianNormalizer
public ScandinavianNormalizer(java.util.Set<ScandinavianNormalizer.Foldings> foldings)
Create the instance, while choosing which foldings to apply. This may differ between Norwegian, Danish and Swedish.- Parameters:
foldings- a Set of Foldings to apply (i.e. AE, OE, AA, AO, OO)
-
-