Share via


LexicalNormalizerName Class

public final class LexicalNormalizerName
extends ExpandableStringEnum<LexicalNormalizerName>

Defines the names of all text normalizers supported by the search engine.

Field Summary

Modifier and Type Field and Description
static final LexicalNormalizerName ASCII_FOLDING

Converts alphabetic, numeric, and symbolic Unicode characters which are not in the first 127 ASCII characters (the "Basic Latin" Unicode block) into their ASCII equivalents, if such equivalents exist.

static final LexicalNormalizerName ELISION

Removes elisions.

static final LexicalNormalizerName LOWERCASE

Normalizes token text to lowercase.

static final LexicalNormalizerName STANDARD

Standard normalizer, which consists of lowercase and asciifolding.

static final LexicalNormalizerName UPPERCASE

Normalizes token text to uppercase.

Constructor Summary

Constructor Description
LexicalNormalizerName()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of LexicalNormalizerName value.

Method Summary

Modifier and Type Method and Description
static LexicalNormalizerName fromString(String name)

Creates or finds a LexicalNormalizerName from its string representation.

static Collection<LexicalNormalizerName> values()

Gets known LexicalNormalizerName values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

ASCII_FOLDING

public static final LexicalNormalizerName ASCII_FOLDING

Converts alphabetic, numeric, and symbolic Unicode characters which are not in the first 127 ASCII characters (the "Basic Latin" Unicode block) into their ASCII equivalents, if such equivalents exist. See http://lucene.apache.org/core/4\_10\_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/ASCIIFoldingFilter.html.

ELISION

public static final LexicalNormalizerName ELISION

Removes elisions. For example, "l'avion" (the plane) will be converted to "avion" (plane). See http://lucene.apache.org/core/4\_10\_3/analyzers-common/org/apache/lucene/analysis/util/ElisionFilter.html.

LOWERCASE

public static final LexicalNormalizerName LOWERCASE

Normalizes token text to lowercase. See https://lucene.apache.org/core/6\_6\_1/analyzers-common/org/apache/lucene/analysis/core/LowerCaseFilter.html.

STANDARD

public static final LexicalNormalizerName STANDARD

Standard normalizer, which consists of lowercase and asciifolding. See http://lucene.apache.org/core/4\_10\_3/analyzers-common/org/apache/lucene/analysis/reverse/ReverseStringFilter.html.

UPPERCASE

public static final LexicalNormalizerName UPPERCASE

Normalizes token text to uppercase. See https://lucene.apache.org/core/6\_6\_1/analyzers-common/org/apache/lucene/analysis/core/UpperCaseFilter.html.

Constructor Details

LexicalNormalizerName

@Deprecated
public LexicalNormalizerName()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of LexicalNormalizerName value.

Method Details

fromString

public static LexicalNormalizerName fromString(String name)

Creates or finds a LexicalNormalizerName from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding LexicalNormalizerName.

values

public static Collection<LexicalNormalizerName> values()

Gets known LexicalNormalizerName values.

Returns:

known LexicalNormalizerName values.

Applies to