Class ScandinavianNormalizer
- java.lang.Object
-
- org.apache.lucene.analysis.miscellaneous.ScandinavianNormalizer
-
public final class ScandinavianNormalizer extends java.lang.Object
This 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 class
ScandinavianNormalizer.Foldings
List of possible foldings that can be used when configuring the filter
-
Field Summary
Fields Modifier and Type Field Description (package private) static char
aa
(package private) static char
AA
(package private) static char
ae
(package private) static char
AE
(package private) static char
ae_se
(package private) static char
AE_se
static java.util.Set<ScandinavianNormalizer.Foldings>
ALL_FOLDINGS
private java.util.Set<ScandinavianNormalizer.Foldings>
foldings
(package private) static char
oe
(package private) static char
OE
(package private) static char
oe_se
(package private) static char
OE_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 int
processToken(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)
-
-