CustomNormalizer Class
- java.
lang. Object - com.
azure. search. documents. indexes. models. LexicalNormalizer - com.
azure. search. documents. indexes. models. CustomNormalizer
- com.
- com.
public final class CustomNormalizer
extends LexicalNormalizer
Allows you to configure normalization for filterable, sortable, and facetable fields, which by default operate with strict matching. This is a user-defined configuration consisting of at least one or more filters, which modify the token that is stored.
Constructor Summary
| Constructor | Description |
|---|---|
| CustomNormalizer(String name) |
Creates an instance of Custom |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Custom |
fromJson(JsonReader jsonReader)
Reads an instance of Custom |
|
List<Char |
getCharFilters()
Get the char |
| String |
getOdataType()
Get the odata |
|
List<Token |
getTokenFilters()
Get the token |
|
Custom |
setCharFilters(List<CharFilterName> charFilters)
Set the char |
|
Custom |
setTokenFilters(List<TokenFilterName> tokenFilters)
Set the token |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from LexicalNormalizer
Methods inherited from java.lang.Object
Constructor Details
CustomNormalizer
public CustomNormalizer(String name)
Creates an instance of CustomNormalizer class.
Parameters:
Method Details
fromJson
public static CustomNormalizer fromJson(JsonReader jsonReader)
Reads an instance of CustomNormalizer from the JsonReader.
Parameters:
Returns:
Throws:
getCharFilters
public List<CharFilterName> getCharFilters()
Get the charFilters property: A list of character filters used to prepare input text before it is processed. For instance, they can replace certain characters or symbols. The filters are run in the order in which they are listed.
Returns:
getOdataType
public String getOdataType()
Get the odataType property: A URI fragment specifying the type of normalizer.
Overrides:
CustomNormalizer.getOdataType()Returns:
getTokenFilters
public List<TokenFilterName> getTokenFilters()
Get the tokenFilters property: A list of token filters used to filter out or modify the input token. For example, you can specify a lowercase filter that converts all characters to lowercase. The filters are run in the order in which they are listed.
Returns:
setCharFilters
public CustomNormalizer setCharFilters(List<CharFilterName> charFilters)
Set the charFilters property: A list of character filters used to prepare input text before it is processed. For instance, they can replace certain characters or symbols. The filters are run in the order in which they are listed.
Parameters:
Returns:
setTokenFilters
public CustomNormalizer setTokenFilters(List<TokenFilterName> tokenFilters)
Set the tokenFilters property: A list of token filters used to filter out or modify the input token. For example, you can specify a lowercase filter that converts all characters to lowercase. The filters are run in the order in which they are listed.
Parameters:
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
CustomNormalizer.toJson(JsonWriter jsonWriter)Parameters:
Throws: