Class AsciiFoldingTokenFilter
- java.lang.Object
-
- com.azure.search.documents.indexes.models.TokenFilter
-
- com.azure.search.documents.indexes.models.AsciiFoldingTokenFilter
-
public final class AsciiFoldingTokenFilter extends TokenFilter
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. This token filter is implemented using Apache Lucene.
-
-
Constructor Summary
Constructors Constructor Description AsciiFoldingTokenFilter(String name)
Constructor ofAsciiFoldingTokenFilter
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
isPreserveOriginal()
Get the preserveOriginal property: A value indicating whether the original token will be kept.AsciiFoldingTokenFilter
setPreserveOriginal(Boolean preserveOriginal)
Set the preserveOriginal property: A value indicating whether the original token will be kept.-
Methods inherited from class com.azure.search.documents.indexes.models.TokenFilter
getName
-
-
-
-
Constructor Detail
-
AsciiFoldingTokenFilter
public AsciiFoldingTokenFilter(String name)
Constructor ofAsciiFoldingTokenFilter
.- Parameters:
name
- The name of the token filter. It must only contain letters, digits, spaces, dashes or underscores, can only start and end with alphanumeric characters, and is limited to 128 characters.
-
-
Method Detail
-
isPreserveOriginal
public Boolean isPreserveOriginal()
Get the preserveOriginal property: A value indicating whether the original token will be kept. Default is false.- Returns:
- the preserveOriginal value.
-
setPreserveOriginal
public AsciiFoldingTokenFilter setPreserveOriginal(Boolean preserveOriginal)
Set the preserveOriginal property: A value indicating whether the original token will be kept. Default is false.- Parameters:
preserveOriginal
- the preserveOriginal value to set.- Returns:
- the AsciiFoldingTokenFilter object itself.
-
-