Class CustomEntityAlias
java.lang.Object
com.azure.search.documents.indexes.models.CustomEntityAlias
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CustomEntityAlias>
public final class CustomEntityAlias
extends Object
implements com.azure.json.JsonSerializable<CustomEntityAlias>
A complex object that can be used to specify alternative spellings or synonyms to the root entity name.
-
Constructor Summary
ConstructorsConstructorDescriptionCustomEntityAlias(String text) Creates an instance of CustomEntityAlias class. -
Method Summary
Modifier and TypeMethodDescriptionstatic CustomEntityAliasfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CustomEntityAlias from the JsonReader.Get the fuzzyEditDistance property: Determine the fuzzy edit distance of the alias.getText()Get the text property: The text of the alias.Get the accentSensitive property: Determine if the alias is accent sensitive.Get the caseSensitive property: Determine if the alias is case sensitive.setAccentSensitive(Boolean accentSensitive) Set the accentSensitive property: Determine if the alias is accent sensitive.setCaseSensitive(Boolean caseSensitive) Set the caseSensitive property: Determine if the alias is case sensitive.setFuzzyEditDistance(Integer fuzzyEditDistance) Set the fuzzyEditDistance property: Determine the fuzzy edit distance of the alias.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
CustomEntityAlias
Creates an instance of CustomEntityAlias class.- Parameters:
text- the text value to set.
-
-
Method Details
-
getText
Get the text property: The text of the alias.- Returns:
- the text value.
-
isCaseSensitive
Get the caseSensitive property: Determine if the alias is case sensitive.- Returns:
- the caseSensitive value.
-
setCaseSensitive
Set the caseSensitive property: Determine if the alias is case sensitive.- Parameters:
caseSensitive- the caseSensitive value to set.- Returns:
- the CustomEntityAlias object itself.
-
isAccentSensitive
Get the accentSensitive property: Determine if the alias is accent sensitive.- Returns:
- the accentSensitive value.
-
setAccentSensitive
Set the accentSensitive property: Determine if the alias is accent sensitive.- Parameters:
accentSensitive- the accentSensitive value to set.- Returns:
- the CustomEntityAlias object itself.
-
getFuzzyEditDistance
Get the fuzzyEditDistance property: Determine the fuzzy edit distance of the alias.- Returns:
- the fuzzyEditDistance value.
-
setFuzzyEditDistance
Set the fuzzyEditDistance property: Determine the fuzzy edit distance of the alias.- Parameters:
fuzzyEditDistance- the fuzzyEditDistance value to set.- Returns:
- the CustomEntityAlias object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<CustomEntityAlias>- Throws:
IOException
-
fromJson
Reads an instance of CustomEntityAlias from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of CustomEntityAlias if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the CustomEntityAlias.
-