CustomEntityAlias Class

  • java.lang.Object
    • com.azure.search.documents.indexes.models.CustomEntityAlias

Implements

public final class CustomEntityAlias
implements JsonSerializable<CustomEntityAlias>

A complex object that can be used to specify alternative spellings or synonyms to the root entity name.

Constructor Summary

Constructor Description
CustomEntityAlias(String text)

Creates an instance of CustomEntityAlias class.

Method Summary

Modifier and Type Method and Description
static CustomEntityAlias fromJson(JsonReader jsonReader)

Reads an instance of CustomEntityAlias from the JsonReader.

Integer getFuzzyEditDistance()

Get the fuzzyEditDistance property: Determine the fuzzy edit distance of the alias.

String getText()

Get the text property: The text of the alias.

Boolean isAccentSensitive()

Get the accentSensitive property: Determine if the alias is accent sensitive.

Boolean isCaseSensitive()

Get the caseSensitive property: Determine if the alias is case sensitive.

CustomEntityAlias setAccentSensitive(Boolean accentSensitive)

Set the accentSensitive property: Determine if the alias is accent sensitive.

CustomEntityAlias setCaseSensitive(Boolean caseSensitive)

Set the caseSensitive property: Determine if the alias is case sensitive.

CustomEntityAlias setFuzzyEditDistance(Integer fuzzyEditDistance)

Set the fuzzyEditDistance property: Determine the fuzzy edit distance of the alias.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

CustomEntityAlias

public CustomEntityAlias(String text)

Creates an instance of CustomEntityAlias class.

Parameters:

text - the text value to set.

Method Details

fromJson

public static CustomEntityAlias fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

getFuzzyEditDistance

public Integer getFuzzyEditDistance()

Get the fuzzyEditDistance property: Determine the fuzzy edit distance of the alias.

Returns:

the fuzzyEditDistance value.

getText

public String getText()

Get the text property: The text of the alias.

Returns:

the text value.

isAccentSensitive

public Boolean isAccentSensitive()

Get the accentSensitive property: Determine if the alias is accent sensitive.

Returns:

the accentSensitive value.

isCaseSensitive

public Boolean isCaseSensitive()

Get the caseSensitive property: Determine if the alias is case sensitive.

Returns:

the caseSensitive value.

setAccentSensitive

public CustomEntityAlias setAccentSensitive(Boolean accentSensitive)

Set the accentSensitive property: Determine if the alias is accent sensitive.

Parameters:

accentSensitive - the accentSensitive value to set.

Returns:

the CustomEntityAlias object itself.

setCaseSensitive

public CustomEntityAlias setCaseSensitive(Boolean caseSensitive)

Set the caseSensitive property: Determine if the alias is case sensitive.

Parameters:

caseSensitive - the caseSensitive value to set.

Returns:

the CustomEntityAlias object itself.

setFuzzyEditDistance

public CustomEntityAlias setFuzzyEditDistance(Integer fuzzyEditDistance)

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

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to

Azure SDK for Java

Latest