Class ScandinavianNormalizer
java.lang.Object
org.apache.lucene.analysis.miscellaneous.ScandinavianNormalizer
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 ClassesModifier and TypeClassDescriptionstatic enum
List of possible foldings that can be used when configuring the filter -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final char
(package private) static final char
(package private) static final char
(package private) static final char
(package private) static final char
(package private) static final char
static final Set<ScandinavianNormalizer.Foldings>
private final Set<ScandinavianNormalizer.Foldings>
(package private) static final char
(package private) static final char
(package private) static final char
(package private) static final char
-
Constructor Summary
ConstructorsConstructorDescriptionCreate the instance, while choosing which foldings to apply. -
Method Summary
Modifier and TypeMethodDescriptionint
processToken
(char[] buffer, int length) Takes the original buffer and length as input.
-
Field Details
-
foldings
-
ALL_FOLDINGS
-
AA
static final char AA- See Also:
-
aa
static final char aa- See Also:
-
AE
static final char AE- See Also:
-
ae
static final char ae- See Also:
-
AE_se
static final char AE_se- See Also:
-
ae_se
static final char ae_se- See Also:
-
OE
static final char OE- See Also:
-
oe
static final char oe- See Also:
-
OE_se
static final char OE_se- See Also:
-
oe_se
static final char oe_se- See Also:
-
-
Constructor Details
-
ScandinavianNormalizer
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)
-
-
Method Details
-
processToken
public int processToken(char[] buffer, int length) Takes the original buffer and length as input. Modifies the buffer in-place and returns new length- Returns:
- new length
-